Documentation/git-log.txt: trivial typo fix.
[git/gitweb.git] / git-verify-tag.sh
blobed4c89396841d8292185b0504ef62ef36007f354
1 #!/bin/sh
2 . git-sh-setup || die "Not a git archive"
4 type="$(git-cat-file -t "$1" 2>/dev/null)" ||
5 die "$1: no such object."
7 test "$type" = tag ||
8 die "$1: cannot verify a non-tag object of type $type."
10 git-cat-file tag "$1" > .tmp-vtag || exit 1
11 cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 1
12 rm -f .tmp-vtag