summaryrefslogtreecommitdiff
path: root/git-verify-tag-script
blob: c4992118ecb607f23e5b328cc343ed6df385c0f9 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
GIT_DIR=${GIT_DIR:-.git}
 
tag=$1
[ -f "$GIT_DIR/refs/tags/$tag" ] && tag=$(cat "$GIT_DIR/refs/tags/$tag")
 
git-cat-file tag $tag > .tmp-vtag || exit 1
cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag -
rm -f .tmp-vtag