X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=git-count-objects.sh;h=40c58efe0884a2431146bdd3dd12910033e5f182;hb=ac5a85181ac18b0119705f46cfa825389643df33;hp=fc61a1a987d45bc73bcee805e9010c5ac96ea66a;hpb=8fc66df237afce0b4318657f166b3583831949f3;p=git.git diff --git a/git-count-objects.sh b/git-count-objects.sh index fc61a1a9..40c58efe 100755 --- a/git-count-objects.sh +++ b/git-count-objects.sh @@ -3,7 +3,7 @@ # 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 || { # This is not a real DC at all -- it just knows how