git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: GPG signing is bent on WIndows

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 9, 2018, 12:31 UTC
Message-ID
<nycvar.QRO.7.76.6.1811091328350.39@tvgsbejvaqbjf.bet>
In-Reply-To
<CAH8yC8ngjy_NGhgepRu+331L_=QQ4bpvMe5T4OtjLXJR3OZ-NQ@mail.gmail.com>
Hi Jeff,
On Wed, 26 Sep 2018, Jeffrey Walton wrote:
Show 14 quoted lines
> Several weeks ago I updated to the latest Git for Windows (when
> prompted by the version check). At the time I noticed:
> 
> $ git commit -S -am "Fix unset MAKE variable in test scripts"
> gpg: signing failed: No pinentry
> gpg: signing failed: No pinentry
> error: gpg failed to sign the data
> fatal: failed to write commit object
> 
> I got to look at it today. On Windows:
> 
> $ cat ~/.gnupg/gpg-agent.conf
> pinentry-program
> /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac

Git for Windows is partially based off of MSYS2, which upgraded GPG from v1 to v2, and one of the consequences is that v2 handles interaction with the user differently.

My guess is that you copied your config from a Mac, and the path is simply incorrect. I would wager a bet that it starts working when you remove that line with the incorrect path, as the default should work plenty fine for you.

Ciao, Johannes

Previous: Tacitus Aedifex
Message 3 of 3 in “GPG signing is bent on WIndows”
  1. Jeffrey WaltonSep 26, 2018
  2. Tacitus AedifexSep 26, 2018
  3. Johannes SchindelinNov 9, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.