Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-verify-tag: Usage string clean-up, emit usage string at incorrect invocation
author
freku045@student.liu.se
<freku045@student.liu.se>
Tue, 13 Dec 2005 22:30:31 +0000
(23:30 +0100)
committer
Junio C Hamano
<junkio@cox.net>
Wed, 14 Dec 2005 10:53:43 +0000
(
02:53
-0800)
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-verify-tag.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
806f36d
)
diff --git
a/git-verify-tag.sh
b/git-verify-tag.sh
index 1f44da53496e880395286dafb431b9c3095df9f1..726b1e706ba247ee5b17e1312d7195119a690da2 100755
(executable)
--- 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='<tag>'
+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."