Code

count-objects: squelch error from find on sparse object directory.
authorJunio C Hamano <junkio@cox.net>
Wed, 19 Oct 2005 22:01:50 +0000 (15:01 -0700)
committerJunio C Hamano <junkio@cox.net>
Wed, 19 Oct 2005 22:01:50 +0000 (15:01 -0700)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-count-objects.sh

index 74ee4f371f749cb5ae9fdb7e789d341f60997e62..843d2fd9f2ef53ccd1600dd9b89ec70fbc639146 100755 (executable)
@@ -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.