count-objects: make it operable from a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Nov 27, 2005 at 22:53 UTC
710b7098e28513355cbdbedbb8d9c35ce5b4a488
1 file changed
+1
-1
git-count-objects.sh
+1
-1
@@ -3,7 +3,7 @@
3
# Copyright (c) 2005 Junio C Hamano
4
#
5
6
-. git-sh-setup
6
+GIT_DIR=`git-rev-parse --git-dir` || exit $?
7
8
dc </dev/null 2>/dev/null || {
9
# This is not a real DC at all -- it just knows how