fix the invalid argument type in helpers::get_closest_merge_base_commit
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
4d48a6be74
commit
ab690d31ce
@ -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());
|
let merge_base = get_git_merge_base(config, source_dir).unwrap_or_else(|_| "HEAD".into());
|
||||||
|
|
||||||
git.arg(Path::new("rev-list"));
|
git.args(["rev-list", &format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
|
||||||
git.args([&format!("--author={author}"), "-n1", "--first-parent", &merge_base]);
|
|
||||||
|
|
||||||
if !target_paths.is_empty() {
|
if !target_paths.is_empty() {
|
||||||
git.arg("--").args(target_paths);
|
git.arg("--").args(target_paths);
|
||||||
|
Loading…
Reference in New Issue
Block a user