mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-29 23:17:32 +02:00
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:
parent
52da806c57
commit
6fb3b7430c
@ -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 {
|
||||
|
@ -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"},
|
||||
|
Loading…
x
Reference in New Issue
Block a user