@matheusbsbs / matheus-bagliano / commits / d6a461e177
Fork 0

count-objects: squelch error from find on sparse object directory.

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Oct 19, 2005 at 15:01 UTC d6a461e17758f369cd7b76e78262b1717cc5c39c
1 file changed +1 -1
git-count-objects.sh
+1 -1
@@ -2,7 +2,7 @@
2
3 . git-sh-setup
4
5 -echo $(find "$GIT_DIR/objects"/?? -type f -print | wc -l) objects, \
5 +echo $(find "$GIT_DIR/objects"/?? -type f -print 2>/dev/null | wc -l) objects, \
6 $({
7 echo 0
8 # "no-such" is to help Darwin folks by not using xargs -r.