Invalidate cache-tree entries for touched paths in git-apply.
[gitweb.git] / git-prune.sh
index 7b61d05c4b58c57c833563955e3206f0e4142c39..c5a5d29aaacf753b70e715169cbb7f74f0193e4a 100755 (executable)
@@ -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