aboutsummaryrefslogtreecommitdiff
path: root/git-tag.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-27 23:19:06 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-28 23:13:03 -0800
commit7ea2fc47d258657d673ce3b9403ed98cc50e2600 (patch)
treeaa457c742365705f3296fc4cf2d0d78d44a1253d /git-tag.sh
parenteefaa4fca79f5240eaefd0046a338dbdac8b4204 (diff)
downloadgit-7ea2fc47d258657d673ce3b9403ed98cc50e2600.tar.gz
git-7ea2fc47d258657d673ce3b9403ed98cc50e2600.tar.xz
tag: make it operable from a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-tag.sh')
-rwxr-xr-xgit-tag.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-tag.sh b/git-tag.sh
index 16efc5b70..e71028695 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>]"