From e8229f0ee0eafb2d94674a091cb7a8776468e9c1 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Fri, 7 Jan 2022 20:17:23 +1100 Subject: support general git config calls --- pkg/commands/git_config/fake_git_config.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pkg/commands/git_config/fake_git_config.go') diff --git a/pkg/commands/git_config/fake_git_config.go b/pkg/commands/git_config/fake_git_config.go index f010efd8c..78ba62c54 100644 --- a/pkg/commands/git_config/fake_git_config.go +++ b/pkg/commands/git_config/fake_git_config.go @@ -17,6 +17,13 @@ func (self *FakeGitConfig) Get(key string) string { return self.mockResponses[key] } +func (self *FakeGitConfig) GetGeneral(args string) string { + if self.mockResponses == nil { + return "" + } + return self.mockResponses[args] +} + func (self *FakeGitConfig) GetBool(key string) bool { return isTruthy(self.Get(key)) } -- cgit v1.2.3