3 GIT_DIR
=`git-rev-parse --git-dir` ||
exit $?
10 type="$(git-cat-file -t "$1" 2>/dev/null)" ||
11 die
"$1: no such object."
14 die
"$1: cannot verify a non-tag object of type $type."
16 git-cat-file tag
"$1" >"$GIT_DIR/.tmp-vtag" ||
exit 1
17 cat "$GIT_DIR/.tmp-vtag" |
18 sed '/-----BEGIN PGP/Q' |
19 gpg
--verify "$GIT_DIR/.tmp-vtag" - ||
exit 1
20 rm -f "$GIT_DIR/.tmp-vtag"