summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-08 02:11:57 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2017-01-08 22:14:48 +0000
commitc35d643a5117ac3ed2d4966a0db0427266e924b9 (patch)
tree5811390fcd5db0d44c676b64f93676e9caf69936 /dgit
parent2ecbfc70bba339e0475b745f5d5615675e427370 (diff)
git fetching: Do not crash if nothing we wanted to fetch exists
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 d524bd2..9393bdd 100755
--- a/dgit
+++ b/dgit
@@ -2592,7 +2592,8 @@ END
my @fcmd = (@git, qw(fetch -p -n -q), access_giturl(), @fspecs);
runcmd_ordryrun_local @git, qw(fetch -p -n -q), access_giturl(),
- @fspecs;
+ @fspecs
+ if @fspecs;
%lrfetchrefs_f = ();
my %objgot;