File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -983,7 +983,7 @@ sub find_parents {
983
983
# check that we actually know about the branch
984
984
next unless -e " $git_dir /refs/heads/$branch " ;
985
985
986
- my $mergebase = ` git-merge-base $branch $ps ->{branch}` ;
986
+ my $mergebase = safe_pipe_capture( qw( git-merge-base) , $branch , $ps -> {branch }) ;
987
987
if ($? ) {
988
988
# Don't die here, Arch supports one-way cherry-picking
989
989
# between branches with no common base (or any relationship
@@ -1074,7 +1074,7 @@ sub find_parents {
1074
1074
1075
1075
sub git_rev_parse {
1076
1076
my $name = shift ;
1077
- my $val = ` git-rev-parse $name ` ;
1077
+ my $val = safe_pipe_capture( qw( git-rev-parse) , $name ) ;
1078
1078
die " Error: git-rev-parse $name " if $? ;
1079
1079
chomp $val ;
1080
1080
return $val ;
You can’t perform that action at this time.
0 commit comments