summaryrefslogtreecommitdiff
path: root/git-count-objects.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-19 15:01:50 -0700
committerJunio C Hamano <junkio@cox.net>2005-10-19 15:01:50 -0700
commitd6a461e17758f369cd7b76e78262b1717cc5c39c (patch)
tree3496458ade725114f0babbd2c6683c4115a40c51 /git-count-objects.sh
parent76e712f1b38c6bfa744ee55fb46dfdb45ad3646e (diff)
downloadgit-d6a461e17758f369cd7b76e78262b1717cc5c39c.tar.gz
count-objects: squelch error from find on sparse object directory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-count-objects.sh')
-rwxr-xr-xgit-count-objects.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-count-objects.sh b/git-count-objects.sh
index 74ee4f371f..843d2fd9f2 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.