Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2005-07-17 00:18:40 +0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-07-23 04:48:45 +0400
commit62b532b080d56e02d8f486e801110456ab0bb380 (patch)
tree1aa533311ef0b09998ae2dae6ecd5a90a640b583 /git-verify-tag-script
parent8228326e467342408d27000edcd6739f2c9cc2a6 (diff)
[PATCH] Cleanup: git-verify-tag-script
- Use git-rev-parse to allow sha1 tags references - When the tag does not verify set an appropriate exit status - Use git-sh-setup-script to verify the .git directory Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'git-verify-tag-script')
-rwxr-xr-xgit-verify-tag-script7
1 files changed, 3 insertions, 4 deletions
diff --git a/git-verify-tag-script b/git-verify-tag-script
index c4992118ec..6eb650be7a 100755
--- a/git-verify-tag-script
+++ b/git-verify-tag-script
@@ -1,9 +1,8 @@
#!/bin/sh
-GIT_DIR=${GIT_DIR:-.git}
+. git-sh-setup-script || die "Not a git archive"
-tag=$1
-[ -f "$GIT_DIR/refs/tags/$tag" ] && tag=$(cat "$GIT_DIR/refs/tags/$tag")
+tag=$(git-rev-parse $1) || exit 1
git-cat-file tag $tag > .tmp-vtag || exit 1
-cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag -
+cat .tmp-vtag | sed '/-----BEGIN PGP/Q' | gpg --verify .tmp-vtag - || exit 1
rm -f .tmp-vtag