Revert "We do not like "HEAD" as a new branch name"
[gitweb.git] / git-tag.sh
index 13759453077b025d7815354c61269c2a9847e68f..6d0c973239a1b72bbef43aa430f1ee534b7ab458 100755 (executable)
@@ -1,12 +1,9 @@
 #!/bin/sh
 # Copyright (c) 2005 Linus Torvalds
 
-. git-sh-setup || die "Not a git archive"
-
-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=