author | Michael J Gruber <git@drmicha.warpmail.net> | |
Wed, 10 Nov 2010 11:17:26 +0000 (12:17 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 10 Nov 2010 17:39:35 +0000 (09:39 -0800) | ||
commit | c8525c302bfd8c5bc6a7e2f7aec0be2951eefd90 | |
tree | a705c0ebf132d2fa8cc6e4831178a8a6425f114e | tree | snapshot |
parent | af77aee9cac51c2036e6019b4aebec2049f03e6b | commit | diff |
t/t7004-tag: test handling of rfc1991 signatures
Currently, git expects "-----BEGIN PGP SIGNATURE-----" at the beginning of a
signature. But gpg uses "MESSAGE" instead of "SIGNATURE" when used with
the "rfc1991" option. This leads to git's failing to verify it's own
signed tags, among other problems.
Add tests for all code paths (tag -v, tag -l -n largenumber, tag -f
without -m) where signature detection matters.
Reported-by: Stephan Hugel <urschrei@gmail.com>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Currently, git expects "-----BEGIN PGP SIGNATURE-----" at the beginning of a
signature. But gpg uses "MESSAGE" instead of "SIGNATURE" when used with
the "rfc1991" option. This leads to git's failing to verify it's own
signed tags, among other problems.
Add tests for all code paths (tag -v, tag -l -n largenumber, tag -f
without -m) where signature detection matters.
Reported-by: Stephan Hugel <urschrei@gmail.com>
Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7004-tag.sh | diff | blob | history |