You are not logged in.
Yesterday, I set up git to sign commits using gpg, and it worked fine.
But for some reason it errors out today. Using gpg without git works fine too.
Here's the output using GIT_TRACE
08:41:59.634025 git.c:459 trace: built-in: git commit -aS
08:41:59.634581 run-command.c:1549 run_processes_parallel: preparing to run up to 1 tasks
08:41:59.634600 run-command.c:654 trace: run_command: GIT_INDEX_FILE=/home/user/.config/qtile/.git/index.lock .git/hooks/pre-commit
08:41:59.652301 git.c:459 trace: built-in: git rev-parse --abbrev-ref HEAD
rewrite-development
08:41:59.653150 run-command.c:1581 run_processes_parallel: done
hint: Waiting for your editor to close the file... 08:41:59.653584 run-command.c:654 trace: run_command: GIT_INDEX_FILE=/home/user/.config/qtile/.git/index.lock /usr/bin/vim /home/user/.config/qtile/.git/COMMIT_EDITMSG
08:42:09.566319 run-command.c:654 trace: run_command: gpg --status-fd=2 -bsau 965FB72227B0F41B
error: gpg failed to sign the data
fatal: failed to write commit object
I tried running
gpg --status-fd=2 -bsau 965FB72227B0F41B
and it ran fine.
Here's my gpg-agent.conf:
pinentry-program /usr/bin/pinentry-curses
max-cache-ttl 0
Thanks in advance!
Last edited by SweepingBishops (2022-05-04 09:28:22)
Offline
It seems like it's the pinentry-curses that causes the problem. I tried different pinentry programs and it seems like a gui pinentry works fine and the terminal ones cause the error.
Offline
Offline