summaryrefslogtreecommitdiff
path: root/git-count-objects.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-10-19 22:01:50 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-19 22:01:50 (GMT)
commitd6a461e17758f369cd7b76e78262b1717cc5c39c (patch)
tree3496458ade725114f0babbd2c6683c4115a40c51 /git-count-objects.sh
parent76e712f1b38c6bfa744ee55fb46dfdb45ad3646e (diff)
downloadgit-d6a461e17758f369cd7b76e78262b1717cc5c39c.zip
git-d6a461e17758f369cd7b76e78262b1717cc5c39c.tar.gz
git-d6a461e17758f369cd7b76e78262b1717cc5c39c.tar.bz2
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 74ee4f3..843d2fd 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.