Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Cloning from a repo without "current branch"
[gitweb.git]
/
git-verify-tag.sh
diff --git
a/git-verify-tag.sh
b/git-verify-tag.sh
index 36f171b3028a3460c1c51f9c1f5747a9a0d2d850..f2d5597dba8921c6381dfd018a97733252cc457d 100755
(executable)
--- a/
git-verify-tag.sh
+++ b/
git-verify-tag.sh
@@
-34,9
+34,11
@@
t)
;;
esac
+trap 'rm -f "$GIT_DIR/.tmp-vtag"' 0
+
git-cat-file tag "$1" >"$GIT_DIR/.tmp-vtag" || exit 1
+
cat "$GIT_DIR/.tmp-vtag" |
sed '/-----BEGIN PGP/Q' |
gpg --verify "$GIT_DIR/.tmp-vtag" - || exit 1
rm -f "$GIT_DIR/.tmp-vtag"
-