From: Junio C Hamano <gitster@pobox.com>
To: Jens Schmidt <farblos@vodafonemail.de>
Cc: git@vger.kernel.org
Subject: Re: Calling "gpg --sign" with loopback pinentry in some scenarios, but not always
Date: Sat, 17 Feb 2024 15:31:01 -0800 [thread overview]
Message-ID: <xmqqle7ifz2i.fsf@gitster.g> (raw)
In-Reply-To: <de38341b-f69f-4d3b-a4c2-4443e1ec1f6f@vodafonemail.de> (Jens Schmidt's message of "Sat, 17 Feb 2024 23:51:43 +0100")
Jens Schmidt <farblos@vodafonemail.de> writes:
> It seems that "git" does not have any hooks to pass arbitrary
> additional parameters to "gpg", right? So my only reasonable
> option would be a Emacs/Magit-specific "gpg"-wrapper that adds
> command line parameter "--pinentry-mode loopback" to the wrapped
> "gpg" executable.
Correct. You can point your gpg.program configuration variable at
your wrapper, perhaps
$ cat >"$HOME/bin/mygpg-with-pinentry" <<\EOF
#!/bin/sh
exec gpg --pinentry-mode loopback "$@"
EOF
$ chmod +x "$HOME/bin/mygpg-with-pinentry"
$ git config gpg.openpgp.program "$HOME/bin/mygpg-with-pinentry"
or something like that. It is unfortunate that
$ git config gpg.openpgp.program "gpg --pinentry-mode loopback"
does not work.
prev parent reply other threads:[~2024-02-17 23:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-17 22:51 Calling "gpg --sign" with loopback pinentry in some scenarios, but not always Jens Schmidt
2024-02-17 23:31 ` Junio C Hamano [this message]
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=xmqqle7ifz2i.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=farblos@vodafonemail.de \
--cc=git@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).