summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-01-07 00:29:48 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-01-07 00:29:48 -0800
commit3be7098ce444395959c856de1eb9312550193aac (patch)
tree75469653c4b794bea13dddd8def12fe520cf5ef0
parentRetire debian/ directory. (diff)
downloadtgif-3be7098ce444395959c856de1eb9312550193aac.tar.xz
prune: do not show error from pack-redundant when no packs are found.
When there is no pack yet, git-prune leaked an error message from "git-pack-redundant --all" which complained that there is no pack. Squelch the annoying message. Signed-off-by: Junio C Hamano <junkio@cox.net>
-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