From: Junio C Hamano Date: Wed, 19 Oct 2005 22:01:50 +0000 (-0700) Subject: count-objects: squelch error from find on sparse object directory. X-Git-Tag: v0.99.9~79^2~5 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d6a461e17758f369cd7b76e78262b1717cc5c39c;p=git.git count-objects: squelch error from find on sparse object directory. Signed-off-by: Junio C Hamano --- diff --git a/git-count-objects.sh b/git-count-objects.sh index 74ee4f37..843d2fd9 100755 --- a/git-count-objects.sh +++ b/git-count-objects.sh @@ -2,7 +2,7 @@ . git-sh-setup -echo $(find "$GIT_DIR/objects"/?? -type f -print | wc -l) objects, \ +echo $(find "$GIT_DIR/objects"/?? -type f -print 2>/dev/null | wc -l) objects, \ $({ echo 0 # "no-such" is to help Darwin folks by not using xargs -r.