summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_config/fake_git_config.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/commands/git_config/fake_git_config.go')
-rw-r--r--pkg/commands/git_config/fake_git_config.go7
1 files changed, 7 insertions, 0 deletions
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))
}