From: Marco Sirabella Date: Tue, 05 Mar 2024 02:08:15 GMT Subject: [PATCH] gpg-interface: Look up signing keys with only email address Message-ID: <20240305020815.2980-1-marco@sirabella.org> Sometimes gpg signing key UIDs include a comment between the name and parenthesis in the form of: John Smith (example) jsmith@example.com There's no way for git to find signing keys associated with just these UIDs, so look up a partial match on the email only. Signed-off-by: Marco Sirabella --- gpg-interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpg-interface.c b/gpg-interface.c index 95e764acb1..3c303e05bd 100644 --- a/gpg-interface.c +++ b/gpg-interface.c @@ -922,7 +922,7 @@ const char *get_signing_key(void) return use_format->get_default_key(); } - return git_committer_info(IDENT_STRICT | IDENT_NO_DATE); + return git_committer_info(IDENT_NO_NAME | IDENT_STRICT | IDENT_NO_DATE); } const char *gpg_trust_level_to_str(enum signature_trust_level level) -- 2.43.0