Re: [PATCH 7/25] git-count-objects: Die with usage message if we are invoked incorrectly.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Dec 11, 2005, 04:22 UTC
- 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:
Show 11 quoted lines
> 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.