about summary refs log tree commit diff
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2024-08-05 17:55:42 +0300
committeronur-ozkan <work@onurozkan.dev>2024-08-05 17:55:42 +0300
commitab690d31ceeff606cb7d0359717b50c173c7b21e (patch)
treec562f30029695e051c681114478518b9751ba862
parent4d48a6be74d46304cacb93cb8eb60d70d733b862 (diff)
downloadrust-ab690d31ceeff606cb7d0359717b50c173c7b21e.tar.gz
rust-ab690d31ceeff606cb7d0359717b50c173c7b21e.zip
fix the invalid argument type in `helpers::get_closest_merge_base_commit`
Signed-off-by: onur-ozkan <work@onurozkan.dev>
-rw-r--r--src/bootstrap/src/utils/helpers.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bootstrap/src/utils/helpers.rs b/src/bootstrap/src/utils/helpers.rs
index 16959ce7e82..65e75f114bb 100644
--- a/src/bootstrap/src/utils/helpers.rs
+++ b/src/bootstrap/src/utils/helpers.rs
@@ -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);