tag: make it operable from a subdirectory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Nov 27, 2005 at 23:19 UTC
7ea2fc47d258657d673ce3b9403ed98cc50e2600
1 file changed
+1
-1
git-tag.sh
+1
-1
@@ -1,7 +1,7 @@
1
#!/bin/sh
2
# Copyright (c) 2005 Linus Torvalds
3
4
-. git-sh-setup
4
+GIT_DIR=`git-rev-parse --git-dir` || exit $?
5
6
usage () {
7
echo >&2 "Usage: git-tag [-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <tagname> [<head>]"