Merge part of js/portable into next
[gitweb.git] / git-verify-tag.sh
index d6e0eb87c3df97c978b2de37841fb5fba375a067..726b1e706ba247ee5b17e1312d7195119a690da2 100755 (executable)
@@ -1,6 +1,13 @@
 #!/bin/sh
 
-GIT_DIR=`git-rev-parse --git-dir` || exit $?
+USAGE='<tag>'
+SUBDIRECTORY_OK='Yes'
+. git-sh-setup
+
+if [ "$#" != "1" ]
+then
+  usage
+fi
 
 type="$(git-cat-file -t "$1" 2>/dev/null)" ||
        die "$1: no such object."