From: Junio C Hamano Date: Sun, 11 Dec 2005 04:22:12 GMT Subject: Re: [PATCH 7/25] git-count-objects: Die with usage message if we are invoked incorrectly. Message-ID: <7v1x0kuutn.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <11342434772549-git-send-email-freku045@student.liu.se> freku045@student.liu.se writes: > 5db708396a841860c4d5e41c2acd60476d2207c4 > diff --git a/git-count-objects.sh b/git-count-objects.sh > index 40c58ef..0d544ad 100755 > --- a/git-count-objects.sh > +++ b/git-count-objects.sh > @@ -3,7 +3,16 @@ > # Copyright (c) 2005 Junio C Hamano > # > > -GIT_DIR=`git-rev-parse --git-dir` || exit $? > +. git-sh-setup Not that it matters too much, but this makes count-object not work from subdirectory.