aboutsummaryrefslogtreecommitdiff
path: root/git-count-objects.sh
diff options
context:
space:
mode:
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 74ee4f371..843d2fd9f 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.