chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4cb419
)
dgit: branchsuite: Break out @cmd
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 5 Feb 2017 14:20:15 +0000
(14:20 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 5 Feb 2017 14:20:15 +0000
(14:20 +0000)
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>
dgit
patch
|
blob
|
history
diff --git
a/dgit
b/dgit
index 9e60cdac91bb892a392b96502a71199672d835f0..f1f9332a814f0e277fe13391e064044b5b67b270 100755
(executable)
--- 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 {