gpg-interface: remove other signature headers before verifying
commit9b27b49240f6bf760ff58d917491bec0981aaf9f
authorbrian m. carlson <sandals@crustytoothpaste.net>
Thu, 11 Feb 2021 02:08:06 +0000 (11 02:08 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Feb 2021 07:35:42 +0000 (10 23:35 -0800)
tree189bc11259d633e7cd134c02bf0fdb80b7b20e78
parent88bce0e24c8f777fce1f726b4553bd32286bba04
gpg-interface: remove other signature headers before verifying

When we have a multiply signed commit, we need to remove the signature
in the header before verifying the object, since the trailing signature
will not be over both pieces of data.  Do so, and verify that we
validate the signature appropriately.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
gpg-interface.c
t/t7004-tag.sh