summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-28 07:19:06 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-11-29 07:13:03 (GMT)
commit7ea2fc47d258657d673ce3b9403ed98cc50e2600 (patch)
treeaa457c742365705f3296fc4cf2d0d78d44a1253d
parenteefaa4fca79f5240eaefd0046a338dbdac8b4204 (diff)
downloadgit-7ea2fc47d258657d673ce3b9403ed98cc50e2600.zip
git-7ea2fc47d258657d673ce3b9403ed98cc50e2600.tar.gz
git-7ea2fc47d258657d673ce3b9403ed98cc50e2600.tar.bz2
tag: make it operable from a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-tag.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tag.sh b/git-tag.sh
index 16efc5b..e710286 100755
--- a/git-tag.sh
+++ b/git-tag.sh
@@ -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>]"