aboutsummaryrefslogtreecommitdiff
path: root/git-prune.sh
diff options
context:
space:
mode:
Diffstat (limited to 'git-prune.sh')
-rwxr-xr-xgit-prune.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-prune.sh b/git-prune.sh
index 7b61d05c4..c5a5d29aa 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