diff --git a/git-count-objects.sh b/git-count-objects.sh
index fc61a1a987d45bc73bcee805e9010c5ac96ea66a..40c58efe0884a2431146bdd3dd12910033e5f182 100755 (executable)
--- a/git-count-objects.sh
+++ b/git-count-objects.sh
# Copyright (c) 2005 Junio C Hamano
#
-. git-sh-setup || die "Not a git repository"
+GIT_DIR=`git-rev-parse --git-dir` || exit $?
dc </dev/null 2>/dev/null || {
# This is not a real DC at all -- it just knows how