flathub / com.jetbrains.CLion

https://flathub.org/apps/details/com.jetbrains.CLion
8 stars 8 forks source link

GPG Git commit signing doesn't work #45

Open motorto opened 1 year ago

motorto commented 1 year 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 Clion 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 IDEA Ultimate version: https://github.com/flathub/com.jetbrains.IntelliJ-IDEA-Ultimate/issues/98, but was solved by bundling pinentry (https://github.com/flathub/com.jetbrains.IntelliJ-IDEA-Ultimate/pull/99)