chiark / gitweb /
git fetching: Tidy up a redundant list in git_lrfetch_sane
[dgit.git] / dgit
diff --git a/dgit b/dgit
index 9393bdd9c329350709e91709faf59c850414eb96..845edd3aa22878a3571116c59d37a743fba4ea8f 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);
-       runcmd_ordryrun_local @git, qw(fetch -p -n -q), access_giturl(),
-           @fspecs
-           if @fspecs;
+       runcmd_ordryrun_local @fcmd if @fspecs;
 
        %lrfetchrefs_f = ();
        my %objgot;