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

Re: [BUG] Failed to sign commit

From
Kevin Daudt <me@ikke.info>
Date
Jun 7, 2017, 10:33 UTC
Message-ID
<20170607103326.GB27719@alpha.vpn.ikke.info>
In-Reply-To
<CAPMsMoAYpS8QMrfyed5=XPWJLbV6=kMg5gp-2a75kWMpVD3D1A@mail.gmail.com>
On Wed, Jun 07, 2017 at 10:46:08AM +0100, pedro rijo wrote:
Show 21 quoted lines
> Recently I've updated a bunch of stuff, including git and gpg. I'm using
> 
> - mac OS 10.10.5
> - git 2.13.1
> - gpg (GnuPG) 2.1.21 / libgcrypt 1.7.7
> 
> When I do
> 
> $ git commit --allow-empty -v -m "lol"
> error: gpg failed to sign the data
> fatal: failed to write commit object
> 
> I tried the verbose flag hoping to have a better insight, but not very
> useful. Not sure if it's a gpg problem, a git problem, or something
> else.
> 
> Any clue on how to debug the problem? Do you need any gpg output to
> better understand the problem?
> 
> Thanks,
> Pedro

GIT_TRACE=1 git commit --allow-empty -v -m "lol" might give some extra feedback (ie, what gpg command git runs), and try to see if you can replicate it.

Previous: pedro rijoNext: pedro rijo
Message 2 of 5 in “[BUG] Failed to sign commit”
  1. pedro rijoJun 7, 2017
  2. Kevin DaudtJun 7, 2017
  3. pedro rijoJun 7, 2017
  4. Bryan TurnerJun 7, 2017
  5. pedro rijoJun 9, 2017

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.