Skip to content

Commit

Permalink
Add git-verify-tag script
Browse files Browse the repository at this point in the history
Here is a script to simplify validating the gpg signature created by
git-tag-script. Might be useful to add to the git tree so that people
don't have to search for the right post in the git mailinglist archives
  • Loading branch information
Jan Harkes authored and Linus Torvalds committed Jun 27, 2005
1 parent 27225f2 commit f336e71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions git-verify-tag-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit f336e71

Please sign in to comment.