aboutsummaryrefslogtreecommitdiff
path: root/git-count-objects.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-27 22:53:20 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-28 23:13:02 -0800
commit710b7098e28513355cbdbedbb8d9c35ce5b4a488 (patch)
tree0713c13e17583fd6b71b923435ccb53782ff56d4 /git-count-objects.sh
parent53228a5fb8e80f87803e4a3ba8ed25b70fb4871d (diff)
downloadgit-710b7098e28513355cbdbedbb8d9c35ce5b4a488.tar.gz
git-710b7098e28513355cbdbedbb8d9c35ce5b4a488.tar.xz
count-objects: make it operable from a subdirectory.
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 d6e9a3221..40c58efe0 100755
--- a/git-count-objects.sh
+++ b/git-count-objects.sh
@@ -3,7 +3,7 @@
# Copyright (c) 2005 Junio C Hamano
#
-. git-sh-setup
+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