@matheusbsbs / matheus-bagliano / commits / 349701210d
Fork 0

git-verify-tag: Usage string clean-up, emit usage string at incorrect invocation

Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>

freku045@student.liu.se committed Dec 13, 2005 at 23:30 UTC 349701210dcfb87ed155258cd77644035a69f613
1 file changed +7 -5
git-verify-tag.sh
+7 -5
@@ -1,11 +1,13 @@
1 #!/bin/sh
2
3 -GIT_DIR=`git-rev-parse --git-dir` || exit $?
3 +USAGE='<tag>'
4 +SUBDIRECTORY_OK='Yes'
5 +. git-sh-setup
6
5 -die () {
6 - echo >&2 "$*"
7 - exit 1
8 -}
7 +if [ "$#" != "1" ]
8 +then
9 + usage
10 +fi
11
12 type="$(git-cat-file -t "$1" 2>/dev/null)" ||
13 die "$1: no such object."