1#!/bin/sh2. git-sh-setup || die "Not a git archive"34type="$(git-cat-file -t "$1" 2>/dev/null)" ||5die "$1: no such object."67test "$type" = tag ||8die "$1: cannot verify a non-tag object of type $type."910git-cat-file tag "$1" > .tmp-vtag || exit 111cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 112rm -f .tmp-vtag