Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
define die() for scripts that use it.
[gitweb.git]
/
git-verify-tag.sh
diff --git
a/git-verify-tag.sh
b/git-verify-tag.sh
index d6e0eb87c3df97c978b2de37841fb5fba375a067..1f44da53496e880395286dafb431b9c3095df9f1 100755
(executable)
--- a/
git-verify-tag.sh
+++ b/
git-verify-tag.sh
@@
-2,6
+2,11
@@
GIT_DIR=`git-rev-parse --git-dir` || exit $?
+die () {
+ echo >&2 "$*"
+ exit 1
+}
+
type="$(git-cat-file -t "$1" 2>/dev/null)" ||
die "$1: no such object."