]> git.99rst.org Git - git.git/commit
t/gpg: simplify test for unknown key
authorFabian Stelzer <redacted>
Wed, 12 Jan 2022 12:07:57 +0000 (13:07 +0100)
committerJunio C Hamano <redacted>
Wed, 12 Jan 2022 19:21:22 +0000 (11:21 -0800)
commit0517f591ca290a14ee3e516e478e8d2b78b45822
tree093e0835e12ddccaea931a0bf669a2c2e1d5f9d2
parent18c6653da0be924f83415f987d76f6813b81f086
t/gpg: simplify test for unknown key

To test for a key that is completely unknown to the keyring we need one
to sign the commit with. This was done by generating a new key and not
add it into the keyring. To avoid the key generation overhead and
problems where GPG did hang in CI during it, switch GNUPGHOME to the
empty $GNUPGHOME_NOT_USED instead, therefore making all used keys unknown
for this single `verify-commit` call.

Reported-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Fabian Stelzer <redacted>
Reviewed-by: Taylor Blau <redacted>
Signed-off-by: Junio C Hamano <redacted>
t/t7510-signed-commit.sh
git clone https://git.99rst.org/PROJECT