From: Ian Jackson Date: Sun, 5 Feb 2017 14:20:15 +0000 (+0000) Subject: dgit: branchsuite: Break out @cmd X-Git-Tag: archive/debian/3.10~8 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=e12f9af0e827a5b953f294a4cc0c7fcab7c21603;p=dgit.git dgit: branchsuite: Break out @cmd We are going to need to reuse this to print a proper error message. No functional change. Signed-off-by: Ian Jackson --- diff --git a/dgit b/dgit index 9e60cdac..f1f9332a 100755 --- a/dgit +++ b/dgit @@ -4435,7 +4435,8 @@ sub cmd_clone { } sub branchsuite () { - my $branch = cmdoutput_errok @git, qw(symbolic-ref HEAD); + my @cmd = (@git, qw(symbolic-ref HEAD)); + my $branch = cmdoutput_errok @cmd; if ($branch =~ m#$lbranch_re#o) { return $1; } else {