Merge branch 'jk/safe-pipe-capture' into maint-2.10
This commit is contained in:
commit
dca89d4e56
@ -983,7 +983,7 @@ sub find_parents {
|
|||||||
# check that we actually know about the branch
|
# check that we actually know about the branch
|
||||||
next unless -e "$git_dir/refs/heads/$branch";
|
next unless -e "$git_dir/refs/heads/$branch";
|
||||||
|
|
||||||
my $mergebase = `git-merge-base $branch $ps->{branch}`;
|
my $mergebase = safe_pipe_capture(qw(git-merge-base), $branch, $ps->{branch});
|
||||||
if ($?) {
|
if ($?) {
|
||||||
# Don't die here, Arch supports one-way cherry-picking
|
# Don't die here, Arch supports one-way cherry-picking
|
||||||
# between branches with no common base (or any relationship
|
# between branches with no common base (or any relationship
|
||||||
@ -1074,7 +1074,7 @@ sub find_parents {
|
|||||||
|
|
||||||
sub git_rev_parse {
|
sub git_rev_parse {
|
||||||
my $name = shift;
|
my $name = shift;
|
||||||
my $val = `git-rev-parse $name`;
|
my $val = safe_pipe_capture(qw(git-rev-parse), $name);
|
||||||
die "Error: git-rev-parse $name" if $?;
|
die "Error: git-rev-parse $name" if $?;
|
||||||
chomp $val;
|
chomp $val;
|
||||||
return $val;
|
return $val;
|
||||||
|
Loading…
Reference in New Issue
Block a user