Git commit fails because of gpg

~/.gitconfig excerpt

[user]
	name = BrutalBirdie
	email = hidden
	signingkey = hidden
[commit]
	gpgsign = true

~/.gnupg/gpg-agent.conf

default-cache-ttl 300
max-cache-ttl 999999max-cache-ttl 1200
pinentry-timeout 0
pinentry-program /usr/bin/pinentry

I can also use pass to get my passwords via gpg, no problem.
But when I do git commit -m 'foo bar'

git commit -m 'foo bar'
error: gpg failed to sign the data
fatal: failed to write commit object

I migrated from Manjaro to Garuda and also copy-pasted my old ~/.gnupg folder to the new system.
Also tried a fresh one with no success.

1 Like

Oof :man_facepalming:
I imported a very old backup of my gpg key which expired.
Just updated the expire date and all good.

So this is solved.

3 Likes

That was really brutal :wink:

2 Likes