sourcegit: [Bug] Sourcegit overwrites my GPG signature config
When I just open the Preferences dialog and close it without making any change, Sourcegit adds this at the end of my global git config:
[commit]
gpgsign = false
[tag]
gpgsign = false
[gpg "openpgp"]
program = c:/Program Files (x86)/GnuPG/bin/gpg.exe
This overwrites a previous setting that sets commit.gpgsign to true. I only realized because the Github project I push to is configured to only accept signed commits.
Note that my Git config is a bit unusual. I use the same computer for work and personal projects, so I have a setup like this:
[includeIf "gitdir:C:/Personal/code/"]
path = C:/Personal/code/.gitconfig
[includeIf "gitdir:C:/Work/code/"]
path = C:/Work/code/.gitconfig
The GPG signature settings (user.signingkey and commit.gpgsign) are set in the included files, not directly in the global .gitconfig file.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 19
Commits related to this issue
- enhance: do NOT modify global .gitconfig if value equals git default (#465) — committed to sourcegit-scm/sourcegit by love-linger 2 years ago
- fix: `openpgp` typo (#465) — committed to sourcegit-scm/sourcegit by love-linger 2 years ago
In fact, I really don’t have a better idea. That’s why the label for this issue has changed from
bugtoquestion.