Skip to content

Commit ab690d3

Browse files
committed
fix the invalid argument type in helpers::get_closest_merge_base_commit
Signed-off-by: onur-ozkan <[email protected]>
1 parent 4d48a6b commit ab690d3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bootstrap/src/utils/helpers.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,7 @@ pub fn get_closest_merge_base_commit(
536536

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

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

542541
if !target_paths.is_empty() {
543542
git.arg("--").args(target_paths);

0 commit comments

Comments
 (0)