summaryrefslogtreecommitdiff
path: root/git-prune.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-07 21:32:48 -0800
committerJunio C Hamano <junkio@cox.net>2006-01-07 21:32:48 -0800
commit8fc11b5aa98540f7caab87e22e5aae63512893a2 (patch)
tree42cc20556d8b4766d9a0adbcc2e32de22b9fc6c9 /git-prune.sh
parent92e802c6ccb96d1b5e8561b0a136d43d82253293 (diff)
parent6f2eacfeb2c67a7e05f98df2288d7893d3368c8e (diff)
GIT 1.0.8v1.0.8
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 7b61d05c4b..c5a5d29aaa 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