GNU bug report logs - #41941
Signing git commits with PGP fails

Previous Next

Package: guix;

Reported by: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>

Date: Thu, 18 Jun 2020 22:36:02 UTC

Severity: normal

Tags: notabug

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 41941 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Jonathan Brielmaier <jonathan.brielmaier <at> web.de>
Cc: 41941 <at> debbugs.gnu.org
Subject: Re: bug#41941: Signing git commits with PGP fails
Date: Thu, 18 Jun 2020 21:52:47 -0400
On Fri, Jun 19, 2020 at 12:35:09AM +0200, Jonathan Brielmaier wrote:
> I have a strange error/problem with signing git commits with PGP.

The setup can be complicated...

> Following situation
> 
> `git` is installed via system configuration
> `git:send-email` via `guix install` into the user profile
> 
> ~/.gitconfig has
> ```
> [commit]
>   gpgsign = true
> ```

I also have:

------
[gpg]
        program = gpg 
[user]
        signingkey = B0515948F1E7D3C1B98038A02646FA30BACA7F08
------

> but trying to sign a git commit fails:
> ```
> git commit -m "test"
> error: gpg failed to sign the data
> fatal: failed to write commit object
> ```

Do you also have a GPG pinentry program installed? Are you able to sign
an arbitrary file with GPG, outside of Git? For example:

$ gpg --output test.sig --sign file




This bug report was last modified 4 years and 335 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.