Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
prune: do not show error from pack-redundant when no packs are found.
author
Junio C Hamano
<junkio@cox.net>
Sat, 7 Jan 2006 08:29:48 +0000
(
00:29
-0800)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 7 Jan 2006 08:29:48 +0000
(
00:29
-0800)
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>
git-prune.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7d0e65b
)
diff --git
a/git-prune.sh
b/git-prune.sh
index 7b61d05c4b58c57c833563955e3206f0e4142c39..c5a5d29aaacf753b70e715169cbb7f74f0193e4a 100755
(executable)
--- 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