Describe the problem:
With tabby (1.0.176) installed on a computer running Windows 10, I'm trying to sign my commit with git, in a WSL (ubuntu 22.04). Gnupg is installed, configured. I can sign files with gpg --sign and my gpg key passphrase is asked. But when I try to sign a commit with either git commit -S or git commit --gpg-sign, the process failed with error: gpg failed to sign the data. I suspect this is because the passphrase of the gpg key is not being asked.
I tried to set a environment variable, as found on the web: export GPG_TTY=$(tty), but with not much change.
I'm not sure that the issue comes from tabby or my understanding of WSL (it a new and weird environment for me, as I'm more at ease with a plain linux installation).
Edit: I have the exact same issue with Windows terminal.
To Reproduce:
Install Tabby on a Windows.
Install WSL (ubuntu 22.04).
Start WSL.
Install git and gpg.
Create a gpg key and configure it to be used by git to sign your commit.
Initialize a git project.
Create a new file.
Commit and sign the commit with git commit --gpg-sign.
See the error.
Try to sign a file with gpg: gpg --sign <file> and check your gpg key is asked and that the process succeeds.
From my limited experience, restarting gpg-agent can sometimes help (killall gpg-agent && gpg-agent &), but it's not a terminal issue at the end of the day...
Describe the problem: With tabby (
1.0.176
) installed on a computer running Windows 10, I'm trying to sign my commit with git, in a WSL (ubuntu 22.04). Gnupg is installed, configured. I can sign files withgpg --sign
and my gpg key passphrase is asked. But when I try to sign a commit with eithergit commit -S
orgit commit --gpg-sign
, the process failed witherror: gpg failed to sign the data
. I suspect this is because the passphrase of the gpg key is not being asked.I tried to set a environment variable, as found on the web:
export GPG_TTY=$(tty)
, but with not much change.I'm not sure that the issue comes from tabby or my understanding of WSL (it a new and weird environment for me, as I'm more at ease with a plain linux installation).
Edit: I have the exact same issue with Windows terminal.
To Reproduce:
git commit --gpg-sign
.gpg --sign <file>
and check your gpg key is asked and that the process succeeds.