From: freku045@student.liu.se Date: Tue, 13 Dec 2005 22:30:31 +0000 (+0100) Subject: git-verify-tag: Usage string clean-up, emit usage string at incorrect invocation X-Git-Tag: v0.99.9n^2~7^2~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=349701210dcfb87ed155258cd77644035a69f613;p=git.git git-verify-tag: Usage string clean-up, emit usage string at incorrect invocation Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/git-verify-tag.sh b/git-verify-tag.sh index 1f44da53..726b1e70 100755 --- a/git-verify-tag.sh +++ b/git-verify-tag.sh @@ -1,11 +1,13 @@ #!/bin/sh -GIT_DIR=`git-rev-parse --git-dir` || exit $? +USAGE='' +SUBDIRECTORY_OK='Yes' +. git-sh-setup -die () { - echo >&2 "$*" - exit 1 -} +if [ "$#" != "1" ] +then + usage +fi type="$(git-cat-file -t "$1" 2>/dev/null)" || die "$1: no such object."