refactor: Make commit.gpgSign match official capitalization

The actual usage is case insensitive, so this doesn't actually matter.
But if fills my heart with joy.

The test is case sensitive, but the actual response to `git config
commit.gpgSign` is equivalent to `git config commit.gppsign`
This commit is contained in:
Chris McDonnell 2025-03-14 00:08:52 -04:00 committed by Stefan Haller
parent 52da806c57
commit 6fb3b7430c
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ func (self *ConfigCommands) NeedsGpgSubprocessForCommit() bool {
return false
}
return self.gitConfig.GetBool("commit.gpgsign")
return self.gitConfig.GetBool("commit.gpgSign")
}
func (self *ConfigCommands) GetCoreEditor() string {

View file

@ -128,7 +128,7 @@ func TestRebaseDiscardOldFileChanges(t *testing.T) {
},
{
testName: "returns error when using gpg",
gitConfigMockResponses: map[string]string{"commit.gpgsign": "true"},
gitConfigMockResponses: map[string]string{"commit.gpgSign": "true"},
commits: []*models.Commit{{Name: "commit", Hash: "123456"}},
commitIndex: 0,
fileName: []string{"test999.txt"},