count-objects: make it operable from a subdirectory.
authorJunio C Hamano <junkio@cox.net>
Mon, 28 Nov 2005 06:53:20 +0000 (22:53 -0800)
committerJunio C Hamano <junkio@cox.net>
Tue, 29 Nov 2005 07:13:02 +0000 (23:13 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-count-objects.sh

index d6e9a32..40c58ef 100755 (executable)
@@ -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