* [BUG] Failed to sign commit
@ 2017-06-07 9:46 pedro rijo
2017-06-07 10:33 ` Kevin Daudt
0 siblings, 1 reply; 5+ messages in thread
From: pedro rijo @ 2017-06-07 9:46 UTC (permalink / raw)
To: Git Users
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] Failed to sign commit
2017-06-07 9:46 [BUG] Failed to sign commit pedro rijo
@ 2017-06-07 10:33 ` Kevin Daudt
2017-06-07 10:39 ` pedro rijo
0 siblings, 1 reply; 5+ messages in thread
From: Kevin Daudt @ 2017-06-07 10:33 UTC (permalink / raw)
To: pedro rijo; +Cc: Git Users
On Wed, Jun 07, 2017 at 10:46:08AM +0100, pedro rijo wrote:
> 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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] Failed to sign commit
2017-06-07 10:33 ` Kevin Daudt
@ 2017-06-07 10:39 ` pedro rijo
2017-06-07 20:41 ` Bryan Turner
0 siblings, 1 reply; 5+ messages in thread
From: pedro rijo @ 2017-06-07 10:39 UTC (permalink / raw)
To: Kevin Daudt; +Cc: Git Users
Thanks for the hint!
$ GIT_TRACE=1 git commit --allow-empty -v -m "lol"
11:37:24.594795 git.c:369 trace: built-in: git 'commit'
'--allow-empty' '-v' '-m' 'lol'
11:37:24.605842 run-command.c:369 trace: run_command: 'gpg'
'--status-fd=2' '-bsau' '8AEC0DB537A9FC7E'
error: gpg failed to sign the data
fatal: failed to write commit object
It seems more a gpg problem no? something not well configured after
the update perhaps?
2017-06-07 11:33 GMT+01:00 Kevin Daudt <me@ikke.info>:
> On Wed, Jun 07, 2017 at 10:46:08AM +0100, pedro rijo wrote:
>> 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.
--
Obrigado,
Pedro Rijo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] Failed to sign commit
2017-06-07 10:39 ` pedro rijo
@ 2017-06-07 20:41 ` Bryan Turner
2017-06-09 13:05 ` pedro rijo
0 siblings, 1 reply; 5+ messages in thread
From: Bryan Turner @ 2017-06-07 20:41 UTC (permalink / raw)
To: pedro rijo; +Cc: Kevin Daudt, Git Users
> $ GIT_TRACE=1 git commit --allow-empty -v -m "lol"
> 11:37:24.594795 git.c:369 trace: built-in: git 'commit'
> '--allow-empty' '-v' '-m' 'lol'
> 11:37:24.605842 run-command.c:369 trace: run_command: 'gpg'
> '--status-fd=2' '-bsau' '8AEC0DB537A9FC7E'
> error: gpg failed to sign the data
> fatal: failed to write commit object
>
> It seems more a gpg problem no? something not well configured after
> the update perhaps?
Have you tried running `export GPG_TTY=$(tty)` before running `git
commit`? I had a similar gpg error that was solved by that.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG] Failed to sign commit
2017-06-07 20:41 ` Bryan Turner
@ 2017-06-09 13:05 ` pedro rijo
0 siblings, 0 replies; 5+ messages in thread
From: pedro rijo @ 2017-06-09 13:05 UTC (permalink / raw)
To: Bryan Turner; +Cc: Kevin Daudt, Git Users
as much cliché as it may seem, GPG was with some strange behaviour,
killing the agent and starting again make it work with no problems....
Thanks for the help
2017-06-07 21:41 GMT+01:00 Bryan Turner <bturner@atlassian.com>:
>> $ GIT_TRACE=1 git commit --allow-empty -v -m "lol"
>> 11:37:24.594795 git.c:369 trace: built-in: git 'commit'
>> '--allow-empty' '-v' '-m' 'lol'
>> 11:37:24.605842 run-command.c:369 trace: run_command: 'gpg'
>> '--status-fd=2' '-bsau' '8AEC0DB537A9FC7E'
>> error: gpg failed to sign the data
>> fatal: failed to write commit object
>>
>> It seems more a gpg problem no? something not well configured after
>> the update perhaps?
>
> Have you tried running `export GPG_TTY=$(tty)` before running `git
> commit`? I had a similar gpg error that was solved by that.
--
Obrigado,
Pedro Rijo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2017-06-09 13:06 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-07 9:46 [BUG] Failed to sign commit pedro rijo
2017-06-07 10:33 ` Kevin Daudt
2017-06-07 10:39 ` pedro rijo
2017-06-07 20:41 ` Bryan Turner
2017-06-09 13:05 ` pedro rijo
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).