t/lib-gpg: include separate public keys in keyring.gpg
commit830ff021aaaf12c43f06314feaf465377672d3ea
authorJeff King <peff@peff.net>
Thu, 29 Jan 2015 15:43:20 +0000 (29 10:43 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Jan 2015 19:56:19 +0000 (29 11:56 -0800)
treefad830565e8f186577a29b84a06d8eaf03f0e934
parent6fb5df6c77070f7cea5391572003ecfea3235650
t/lib-gpg: include separate public keys in keyring.gpg

Since 1e3eefb (tests: replace binary GPG keyrings with
ASCII-armored keys, 2014-12-12), we import our test GPG keys
from a single file. Each keypair in the import stream
contains both the secret and public keys. However, older
versions of gpg reportedly fail to import the public half of
the key. We can solve this by including duplicates of the
public keys separately. The duplicates are ignored by modern
gpg, and this makes older versions work.

Reported by Tom G. Christensen <tgc@statsbiblioteket.dk> on
gpg 1.2.6 (from RHEL4).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-gpg.sh
t/lib-gpg/keyring.gpg