{"thread":{"id":"49430","subject":"GPG signing is bent on WIndows","startedAt":"2018-09-26T20:05:05Z","lastAt":"2018-11-09T12:31:11Z","messageCount":3,"participants":["Jeffrey Walton","Tacitus Aedifex","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"358998","messageId":"CAH8yC8ngjy_NGhgepRu+331L_=QQ4bpvMe5T4OtjLXJR3OZ-NQ@mail.gmail.com","threadId":"49430","inReplyTo":null,"subject":"GPG signing is bent on WIndows","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2018-09-26T20:05:02Z","receivedAt":"2018-09-26T20:05:05Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"Several weeks ago I updated to the latest Git for Windows (when\nprompted by the version check). At the time I noticed:\n\n$ git commit -S -am \"Fix unset MAKE variable in test scripts\"\ngpg: signing failed: No pinentry\ngpg: signing failed: No pinentry\nerror: gpg failed to sign the data\nfatal: failed to write commit object\n\nI got to look at it today. On Windows:\n\n$ cat ~/.gnupg/gpg-agent.conf\npinentry-program\n/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac\n\nJeff\n"},{"id":"359011","messageId":"20180926214118.GA14431@SDF.ORG","threadId":"49430","inReplyTo":"CAH8yC8ngjy_NGhgepRu+331L_=QQ4bpvMe5T4OtjLXJR3OZ-NQ@mail.gmail.com","subject":"Re: GPG signing is bent on WIndows","fromName":"Tacitus Aedifex","fromEmail":"aedifex@sdf.org","sentAt":"2018-09-26T21:41:18Z","receivedAt":"2018-09-26T21:41:28Z","isPatch":false,"sender":{"key":"aedifex@sdf.org","avatar":"https://gravatar.com/avatar/7d5361117c8a59b99af67c0282a2785183f7cee0f2a3294d8d3dcb7a6c00387d?d=mp&s=160"},"body":"On Wed, Sep 26, 2018 at 04:05:02PM -0400, Jeffrey Walton wrote:\n>I got to look at it today. On Windows:\n>\n>$ cat ~/.gnupg/gpg-agent.conf\n>pinentry-program\n>/usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac\n\nDo you have this app on your system? That path looks like one for a mac \npinentry program and won't work on Windows. There are several tutorials on the \nweb that explain how to get GPG working on windows. I suggest starting there.  \nGet so that you can sign normal files from the command line on Windows and then \ntry again.\n\n//tæ\n"},{"id":"362825","messageId":"nycvar.QRO.7.76.6.1811091328350.39@tvgsbejvaqbjf.bet","threadId":"49430","inReplyTo":"CAH8yC8ngjy_NGhgepRu+331L_=QQ4bpvMe5T4OtjLXJR3OZ-NQ@mail.gmail.com","subject":"Re: GPG signing is bent on WIndows","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2018-11-09T12:31:06Z","receivedAt":"2018-11-09T12:31:11Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Jeff,\n\nOn Wed, 26 Sep 2018, Jeffrey Walton wrote:\n\n> Several weeks ago I updated to the latest Git for Windows (when\n> prompted by the version check). At the time I noticed:\n> \n> $ git commit -S -am \"Fix unset MAKE variable in test scripts\"\n> gpg: signing failed: No pinentry\n> gpg: signing failed: No pinentry\n> error: gpg failed to sign the data\n> fatal: failed to write commit object\n> \n> I got to look at it today. On Windows:\n> \n> $ cat ~/.gnupg/gpg-agent.conf\n> pinentry-program\n> /usr/local/MacGPG2/libexec/pinentry-mac.app/Contents/MacOS/pinentry-mac\n\nGit for Windows is partially based off of MSYS2, which upgraded GPG from\nv1 to v2, and one of the consequences is that v2 handles interaction with\nthe user differently.\n\nMy guess is that you copied your config from a Mac, and the path is simply\nincorrect. I would wager a bet that it starts working when you remove that\nline with the incorrect path, as the default should work plenty fine for\nyou.\n\nCiao,\nJohannes\n"}]}