X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-prune.sh;h=c5a5d29aaacf753b70e715169cbb7f74f0193e4a;hb=1a82e79315ed633f6b0b1fc4076054950c5380d3;hp=7b61d05c4b58c57c833563955e3206f0e4142c39;hpb=1ed91937e5cd59fdbdfa5f15f6fac132d2b21ce0;p=git.git diff --git a/git-prune.sh b/git-prune.sh index 7b61d05c..c5a5d29a 100755 --- a/git-prune.sh +++ b/git-prune.sh @@ -33,8 +33,7 @@ sed -ne '/unreachable /{ git-prune-packed $dryrun -redundant=$(git-pack-redundant --all) -if test "" != "$redundant" +if redundant=$(git-pack-redundant --all 2>/dev/null) && test "" != "$redundant" then if test "" = "$dryrun" then