Skip to main content
April 24, 2023
Question

Issue with Source Tree after turning on Git + 1Password signature feature

  • April 24, 2023
  • 7 replies
  • 1045 views

In source tree, each time a command is attempted, a pop up with this error show up:


'git log' failed with code 128:'error: unsupported value for gpg.format: ssh
fatal: bad config variable 'gpg.format' in file '/Users/xxx/.gitconfig' at line 22

The line of the file are:

[gpg]
format = ssh


1Password Version: 1Password 8.10.4 (81004032)
Extension Version: Not Provided
OS Version: Mac
Browser:_ Not Provided

7 replies

XIII
April 27, 2023

Which version of git do you use?

You’ll need 2.34 or newer:

https://developer.1password.com/docs/ssh/git-commit-signing/

(I’m using the Homebrew installed version of git with SourceTree and signing commits works fine for me)

April 27, 2023

I have:


▶ git --version
git version 2.38.1

and source tree is version 4.1.7 (243)

XIII
April 27, 2023

That combination should work?

(Both seem a bit outdated though; I run SourceTree 4.2.2 (250) and git 2.40.1)

April 27, 2023

I am on mac osx Venture Version 13.3.1 (22E261).

How would you update git? Isnt as part of the xcode dev tools ?

April 27, 2023

Well... I tried to update sourcetree through itself in the menubar. But that keeps failing. I went on the sourcetree website, redownloaded from fresh, unzip, overwrite the app in Applications. and now it works ! no idea what happened but im glad. FYI, the working version is now: Version 4.2.2 (250)

XIII
April 28, 2023

How would you update git?

I use Homebrew to do that:

https://brew.sh/
https://formulae.brew.sh/formula/git#default

May 26, 2023

Glad to hear the issue was resolved! Let me know if you run into anything else.