Skip to content

Commit

Permalink
Rollup merge of #128686 - onur-ozkan:unnecessary-type-cast, r=Kobzol
Browse files Browse the repository at this point in the history
fix the invalid argument type

It was obviously wrong..
  • Loading branch information
matthiaskrgr authored Aug 5, 2024
2 parents 48e47a6 + ab690d3 commit 8679840
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bootstrap/src/utils/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,7 @@ pub fn get_closest_merge_base_commit(

let merge_base = get_git_merge_base(config, source_dir).unwrap_or_else(|_| "HEAD".into());

git.arg(Path::new("rev-list"));
git.args([&format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
git.args(["rev-list", &format!("--author={author}"), "-n1", "--first-parent", &merge_base]);

if !target_paths.is_empty() {
git.arg("--").args(target_paths);
Expand Down

0 comments on commit 8679840

Please sign in to comment.