Sublime Forum

Error committing with gpgsign

#1
fatal: cannot run gpg: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object

https://git-scm.com/book/en/v2/Git-Tools-Signing-Your-Work

Disabling it in the .gitconfig works; without gpg signature, of course.

[commit]
#       gpgsign = true

Does Sublime Merge support it? seems simply that SMerge doesn’t find the path to gpg which is in a directory in my $PATH:

/usr/local/bin/gpg
0 Likes

Can't sign using GPG
#2

The issue is likely that GPG isn’t in the PATH that Sublime Merge is run with, so it’s not in the PATH when Sublime Merge calls git.

I haven’t tried it, but specifying a full path to gpg will likely fix the issue:

git config --global gpg.program /usr/local/bin/gpg

3 Likes

#3

That worked! thanks a bunch :slight_smile:

0 Likes