From c35d643a5117ac3ed2d4966a0db0427266e924b9 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 8 Jan 2017 02:11:57 +0000 Subject: [PATCH 1/1] git fetching: Do not crash if nothing we wanted to fetch exists Signed-off-by: Ian Jackson --- dgit | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dgit b/dgit index d524bd2d..9393bdd9 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; -- 2.30.2