Merge branch 'ks/ref-filter-signature'

The "git for-each-ref" family of commands learned placeholders
related to GPG signature verification.

* ks/ref-filter-signature:
  ref-filter: add new "signature" atom
  t/lib-gpg: introduce new prereq GPG2
This commit is contained in:
Junio C Hamano
2023-07-14 10:46:07 -07:00
5 changed files with 370 additions and 2 deletions

View File

@ -51,6 +51,27 @@ test_lazy_prereq GPG '
esac
'
test_lazy_prereq GPG2 '
gpg_version=$(gpg --version 2>&1)
test $? != 127 || exit 1
case "$gpg_version" in
"gpg (GnuPG) "[01].*)
say "This test requires a GPG version >= v2.0.0"
exit 1
;;
*)
(gpgconf --kill all || : ) &&
gpg --homedir "${GNUPGHOME}" --import \
"$TEST_DIRECTORY"/lib-gpg/keyring.gpg &&
gpg --homedir "${GNUPGHOME}" --import-ownertrust \
"$TEST_DIRECTORY"/lib-gpg/ownertrust &&
gpg --homedir "${GNUPGHOME}" </dev/null >/dev/null \
--sign -u committer@example.com
;;
esac
'
test_lazy_prereq GPGSM '
test_have_prereq GPG &&
# Available key info: