Make the name of a pack-file depend on the objects packed there-in.
[git/dscho.git] / git-verify-tag-script
blobc4992118ecb607f23e5b328cc343ed6df385c0f9
1 #!/bin/sh
2 GIT_DIR=${GIT_DIR:-.git}
4 tag=$1
5 [ -f "$GIT_DIR/refs/tags/$tag" ] && tag=$(cat "$GIT_DIR/refs/tags/$tag")
7 git-cat-file tag $tag > .tmp-vtag || exit 1
8 cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag -
9 rm -f .tmp-vtag