git-verify-tag.shon commit Merge http://www.kernel.org/pub/scm/gitk/gitk (56fc631)
   1#!/bin/sh
   2. git-sh-setup
   3
   4type="$(git-cat-file -t "$1" 2>/dev/null)" ||
   5        die "$1: no such object."
   6
   7test "$type" = tag ||
   8        die "$1: cannot verify a non-tag object of type $type."
   9
  10git-cat-file tag "$1" > .tmp-vtag || exit 1
  11cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 1
  12rm -f .tmp-vtag