2005-06-27 04:38:47 +04:00
|
|
|
#!/bin/sh
|
2005-09-08 04:26:23 +04:00
|
|
|
. git-sh-setup || die "Not a git archive"
|
2005-06-27 04:38:47 +04:00
|
|
|
|
2005-10-10 03:50:34 +04:00
|
|
|
type="$(git-cat-file -t "$1" 2>/dev/null)" ||
|
|
|
|
die "$1: no such object."
|
2005-06-27 04:38:47 +04:00
|
|
|
|
2005-10-10 03:50:34 +04:00
|
|
|
test "$type" = tag ||
|
|
|
|
die "$1: cannot verify a non-tag object of type $type."
|
|
|
|
|
|
|
|
git-cat-file tag "$1" > .tmp-vtag || exit 1
|
2005-07-17 00:18:40 +04:00
|
|
|
cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 1
|
2005-06-27 04:38:47 +04:00
|
|
|
rm -f .tmp-vtag
|