We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d6e2f8 + 8d0fad0 commit dca89d4Copy full SHA for dca89d4
1 file changed
git-archimport.perl
@@ -983,7 +983,7 @@ sub find_parents {
983
# check that we actually know about the branch
984
next unless -e "$git_dir/refs/heads/$branch";
985
986
- my $mergebase = `git-merge-base $branch $ps->{branch}`;
+ my $mergebase = safe_pipe_capture(qw(git-merge-base), $branch, $ps->{branch});
987
if ($?) {
988
# Don't die here, Arch supports one-way cherry-picking
989
# between branches with no common base (or any relationship
@@ -1074,7 +1074,7 @@ sub find_parents {
1074
1075
sub git_rev_parse {
1076
my $name = shift;
1077
- my $val = `git-rev-parse $name`;
+ my $val = safe_pipe_capture(qw(git-rev-parse), $name);
1078
die "Error: git-rev-parse $name" if $?;
1079
chomp $val;
1080
return $val;
0 commit comments