mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
![Eric W. Biederman](/assets/img/avatar_default.png)
- 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>
9 lines
232 B
Bash
Executable file
9 lines
232 B
Bash
Executable file
#!/bin/sh
|
|
. git-sh-setup-script || die "Not a git archive"
|
|
|
|
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 - || exit 1
|
|
rm -f .tmp-vtag
|