chiark / gitweb /
git fetching: Tidy up a redundant list in git_lrfetch_sane
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 8 Jan 2017 02:44:51 +0000 (02:44 +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 9393bdd..845edd3 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -2591,9 +2591,7 @@ END
        printdebug "git_lrfetch_sane fspecs @fspecs\n";
 
        my @fcmd = (@git, qw(fetch -p -n -q), access_giturl(), @fspecs);
        printdebug "git_lrfetch_sane fspecs @fspecs\n";
 
        my @fcmd = (@git, qw(fetch -p -n -q), access_giturl(), @fspecs);
-       runcmd_ordryrun_local @git, qw(fetch -p -n -q), access_giturl(),
-           @fspecs
-           if @fspecs;
+       runcmd_ordryrun_local @fcmd if @fspecs;
 
        %lrfetchrefs_f = ();
        my %objgot;
 
        %lrfetchrefs_f = ();
        my %objgot;