I use /usr/local/bin/gpg1 to sign my Git commits. It's configured as
[gpg]
program = gpg1
in ~/.gitconfig and works correctly for command-line git. But when commiting in SourceTree, it fails with an error saying it cannot find gpg1:
git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree commit -q -F /var/folders/87/wkgwm0754tn9csz8295qjmmc000bxz/T/SourceTreeTemp.5qp4T8
error: cannot run gpg1: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object
Completed with errors, see above