From: Junio C Hamano <gitster@pobox.com>
To: Jeff King <peff@peff.net>
Cc: Max Gautier <max.gautier@redhat.com>, git@vger.kernel.org
Subject: Re: git rev-list fails to verify ssh-signed commits (but git log works)
Date: Wed, 08 Feb 2023 09:56:16 -0800 [thread overview]
Message-ID: <xmqqmt5orqgv.fsf@gitster.g> (raw)
In-Reply-To: <Y+PRTYtFDoE73XEM@coredump.intra.peff.net> (Jeff King's message of "Wed, 8 Feb 2023 11:43:57 -0500")
Jeff King <peff@peff.net> writes:
> + /*
> + * yikes, this needs to come early in the function because it
> + * also handles user.signingkey, which would otherwise get
> + * shunted to git_ident_config() below
> + */
> + if (git_gpg_config(var, value, cb) < 0)
> + return -1;
Indeed.
> if (starts_with(var, "user.") ||
> starts_with(var, "author.") ||
> starts_with(var, "committer."))
>
> but it would need a bit more work:
>
> 1. Somebody would need to dig into the reasons, if any, for not
> calling git_gpg_config() everywhere. It might be fine, but there
> may be a good reason which we're now violating. Digging in the
> history and looking at the code might yield some hints.
Hmph, I didn't consider calling gpg_config unconditionally. It may
do a bit more than what a typical config callback does (i.e. as
opposed to just store the string values it gets, it tries table
look-ups and stuff) but it is not too bad.
> 2. The individual calls to git_gpg_config() in other programs should
> go away.
Naturally.
> 3. It's possible some refactoring may let us avoid the "yikes" comment
> above (e.g., should user.signingkey just go into the normal ident
> config handler?).
Hindsight is golden---if this were called gpg.signingkey we wouldn't
be having this discussion X-<.
next prev parent reply other threads:[~2023-02-08 17:56 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 15:56 git rev-list fails to verify ssh-signed commits (but git log works) Max Gautier
2023-02-08 16:43 ` Jeff King
2023-02-08 17:56 ` Junio C Hamano [this message]
2023-02-08 18:20 ` Junio C Hamano
2023-02-08 20:31 ` [PATCH] gpg-interface: lazily initialize and read the configuration Junio C Hamano
2023-02-09 0:17 ` Ævar Arnfjörð Bjarmason
2023-02-09 2:05 ` Junio C Hamano
2023-02-09 2:24 ` Ævar Arnfjörð Bjarmason
2023-02-09 12:49 ` Jeff King
2023-02-09 16:38 ` Junio C Hamano
2023-02-09 20:24 ` [PATCH v2] " Junio C Hamano
2023-02-26 22:40 ` Jeff King
2023-02-27 16:00 ` Junio C Hamano
2023-03-08 8:34 ` Ævar Arnfjörð Bjarmason
2023-03-09 3:28 ` Jeff King
2023-03-09 17:03 ` Junio C Hamano
2023-03-10 9:01 ` Jeff King
2023-02-09 12:41 ` git rev-list fails to verify ssh-signed commits (but git log works) Jeff King
2023-02-09 16:44 ` Junio C Hamano
2023-02-08 17:00 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqmt5orqgv.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=max.gautier@redhat.com \
--cc=peff@peff.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.