chiark / gitweb /
git fetching: Do not crash if nothing we wanted to fetch exists
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 02:11:57 +0000 (02:11 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 22:14:48 +0000 (22:14 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index d524bd2..9393bdd 100755 (executable)
--- 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;