Revert "We do not like "HEAD" as a new branch name"
[gitweb.git] / git-tag.sh
index e71028695c935c6c757ac168f1c9a1670076b29d..6d0c973239a1b72bbef43aa430f1ee534b7ab458 100755 (executable)
@@ -1,12 +1,9 @@
 #!/bin/sh
 # Copyright (c) 2005 Linus Torvalds
 
-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>]"
-    exit 1
-}
+USAGE='[-a | -s | -u <key-id>] [-f | -d] [-m <msg>] <tagname> [<head>]'
+SUBDIRECTORY_OK='Yes'
+. git-sh-setup
 
 annotate=
 signed=