]> git.ipfire.org Git - thirdparty/git.git/blame - git-verify-tag.sh
Update usage string and documentation for git-rev-list.
[thirdparty/git.git] / git-verify-tag.sh
CommitLineData
f336e71f 1#!/bin/sh
215a7ad1 2. git-sh-setup || die "Not a git archive"
f336e71f 3
5a6850e8
PBG
4type="$(git-cat-file -t "$1" 2>/dev/null)" ||
5 die "$1: no such object."
f336e71f 6
5a6850e8
PBG
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
62b532b0 11cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 1
f336e71f 12rm -f .tmp-vtag