summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-02-05 14:20:15 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-02-05 14:20:15 +0000
commite12f9af0e827a5b953f294a4cc0c7fcab7c21603 (patch)
treefa3eb9dce1b88710bb7f7296230e533d8bb6bc0a /dgit
parente4cb4198abba08ab41b4076a1e1d90cd17503f01 (diff)
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 <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit3
1 files changed, 2 insertions, 1 deletions
diff --git a/dgit b/dgit
index 9e60cda..f1f9332 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 {