Conversation
This is based on nanotech's patch here -- however using the '--gpg-sign' arg now seems to work. gitx#32 (comment) This is not a complete pull request because adding the arg for gpg signing should only happen if one or maybe ALL of the following are true: - A "GPG Sign" GitX preference is set to true - A git [commit] setting in either a local or global .gitconfig includes: gpgsign = true - The directory ~/gnupg exists
|
close #32 |
|
@stepheneb Should I create a new release with this ? |
I don't think so. I think at the very least it needs a new item in the Preferences pane for enabling or disabling a boolean GPG Sign. Right now it will always try to sign the commit. I haven't tested what happens when a GPG setup is not enabled but I think it's likely it will be an issue. I started looking at adding this but got slowed down because I haven't really worked with Cocoa before and wasn't sure if I could just replicate similar code and extend the nib or if I needed to use xcode gui tools to wire up outlets. I also think generating this boolean might be desirable gitConfigGPGSign: If false then the GPG Sign preference should be disabled and perhaps add a note indicating that Curious what you think? |
|
Yeah, I'm getting an error when committing/amending because of that: and the report from GitX doesn't make it obvious its from GPG signing ("Could not create a commit object"). I've got no error running that command manually in Terminal, or via I'm setup to sign some repos but not all of them, and There's also |
This is based on nanotech's patch here -- however using the
--gpg-signarg now seems to work.#32 (comment)
This is not a complete pull request because adding the arg for gpg signing
should only happen if one or maybe ALL of the following are true:
[commit]setting in either a local or global .gitconfig includes:gpgsign = true~/gnupgexistsThe commit in this pull request created with my local build of GitX with this branch on an M1 Pro Mac is signed -- so it seems to work.