aboutsummaryrefslogtreecommitdiff
path: root/git-archimport.perl
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-09-22 14:43:13 +0900
committerJunio C Hamano <gitster@pobox.com>2017-09-22 14:43:17 +0900
commit0a4986d95111da89a416e2a28f5bb5d534c07271 (patch)
tree41971a89ba68ae97e2229e2e98d149e98e65c59a /git-archimport.perl
parent3b827444811d7eddeddd44850f5dbbb4d59747f5 (diff)
parent27dea4683b608c5c0487dee74cbda13b62803b73 (diff)
downloadgit-0a4986d95111da89a416e2a28f5bb5d534c07271.tar.gz
git-0a4986d95111da89a416e2a28f5bb5d534c07271.tar.xz
Sync with 2.10.5
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-archimport.perl')
-rwxr-xr-xgit-archimport.perl4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-archimport.perl b/git-archimport.perl
index 9cb123a07..b7c173c34 100755
--- a/git-archimport.perl
+++ b/git-archimport.perl
@@ -983,7 +983,7 @@ sub find_parents {
# check that we actually know about the 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 ($?) {
# Don't die here, Arch supports one-way cherry-picking
# between branches with no common base (or any relationship
@@ -1074,7 +1074,7 @@ sub find_parents {
sub git_rev_parse {
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 $?;
chomp $val;
return $val;