Skip to content

[Bug] Sourcegit overwrites my GPG signature config #465

@thomaslevesque

Description

@thomaslevesque

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions