2005-06-27 02:38:47 +02:00
|
|
|
#!/bin/sh
|
2005-09-08 02:26:23 +02:00
|
|
|
. git-sh-setup || die "Not a git archive"
|
2005-06-27 02:38:47 +02:00
|
|
|
|
2005-10-10 01:50:34 +02:00
|
|
|
type="$(git-cat-file -t "$1" 2>/dev/null)" ||
|
|
|
|
die "$1: no such object."
|
2005-06-27 02:38:47 +02:00
|
|
|
|
2005-10-10 01:50:34 +02: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-16 22:18:40 +02:00
|
|
|
cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 1
|
2005-06-27 02:38:47 +02:00
|
|
|
rm -f .tmp-vtag
|