stgit icon indicating copy to clipboard operation
stgit copied to clipboard

Running `stg commit` should GPG sign commits

Open Techcable opened this issue 2 years ago • 2 comments

In my opinion, GPG signing temporary stack metadata is pretty useless, so I have stg.gpgsign = false.

However, I have commit.gpgsign = true. I assume that running stg commit would respect the second option and generate signed commits.

However, it does not. The resulting commits continue to be unsigned.

Techcable avatar Sep 11 '23 20:09 Techcable

One workaround is git rebase --force-rebase

Techcable avatar Sep 11 '23 20:09 Techcable

Setting commit.gpgsign = true and stg.gpgsign = false should result in regular patch commits being signed. I typically run with this setup and it works for me. I'm sorry it isn't working as it is supposed to for you.

A little more information about the StGit and Git versions where you are seeing this would be helpful. Also, where the configuration is in your environment, i.e. are these options being set globally? Locally? Or a combination of both?

jpgrayson avatar Sep 12 '23 13:09 jpgrayson