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

index 16efc5b..e710286 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 # Copyright (c) 2005 Linus Torvalds
 
-. git-sh-setup
+GIT_DIR=`git-rev-parse --git-dir` || exit $?
 
 usage () {
     echo >&2 "Usage: git-tag [-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <tagname> [<head>]"