Commits

Anonymous committed 3be7098

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>

  • Participants
  • Parent commits 7d0e65b

Comments (0)

Files changed (1)

File git-prune.sh

 
 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