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>
This commit is contained in:
parent
806f36d4d7
commit
349701210d
@ -1,11 +1,13 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GIT_DIR=`git-rev-parse --git-dir` || exit $?
|
USAGE='<tag>'
|
||||||
|
SUBDIRECTORY_OK='Yes'
|
||||||
|
. git-sh-setup
|
||||||
|
|
||||||
die () {
|
if [ "$#" != "1" ]
|
||||||
echo >&2 "$*"
|
then
|
||||||
exit 1
|
usage
|
||||||
}
|
fi
|
||||||
|
|
||||||
type="$(git-cat-file -t "$1" 2>/dev/null)" ||
|
type="$(git-cat-file -t "$1" 2>/dev/null)" ||
|
||||||
die "$1: no such object."
|
die "$1: no such object."
|
||||||
|
Loading…
Reference in New Issue
Block a user