flathub / com.jetbrains.IntelliJ-IDEA-Ultimate

https://flathub.org/apps/details/com.jetbrains.IntelliJ-IDEA-Ultimate
15 stars 8 forks source link

GPG Git commit signing doesn't work #98

Closed skidunion closed 2 years ago

skidunion commented 2 years ago

When trying to commit with signing enabled, the following message appears:

0 file committed, 1 file failed to commit: <commit> 
gpg failed to sign the data
failed to write commit object

If I try to sign some cleartext with GPG (echo "test" | gpg --clearsign), via IDEA's Terminal tab, it becomes clear that the error is caused by missing pinentry:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

test
gpg: signing failed: No pinentry
gpg: [stdin]: clear-sign failed: No pinentry

Similar issue exists in the community version: https://github.com/flathub/com.jetbrains.IntelliJ-IDEA-Community/issues/62, but was solved by bundling pinentry

x80486 commented 2 years ago

@skidunion, let me know if the pull request associated to this issue fixes the problem.

skidunion commented 2 years ago

Screenshot_20220408_003452 Appears to be working now, thanks