about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-05 18:36:03 +0200
committerGitHub <noreply@github.com>2024-08-05 18:36:03 +0200
commit86798401df960a8e8da353250dc1351ee00eedc2 (patch)
tree46cd7a308e9f5686622be307e0b168d595acd27b
parent48e47a6889846613c35be6c8f87a55ed5a1b745d (diff)
parentab690d31ceeff606cb7d0359717b50c173c7b21e (diff)
downloadrust-86798401df960a8e8da353250dc1351ee00eedc2.tar.gz
rust-86798401df960a8e8da353250dc1351ee00eedc2.zip
Rollup merge of #128686 - onur-ozkan:unnecessary-type-cast, r=Kobzol
fix the invalid argument type

It was obviously wrong..
-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);