summaryrefslogtreecommitdiffstats
path: root/pkg/commands/config.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-12-21 09:38:36 +1100
committerJesse Duffield <jessedduffield@gmail.com>2021-02-08 14:40:30 -0800
commit78867647d108352888aa4c751ad4f952757bcbdd (patch)
treef2daca5f556211dc3f7fef3b1a23db5fff22856e /pkg/commands/config.go
parent09f32d4f845511638ec162be426eeffb51036b6b (diff)
remove go-gitconfig package
Diffstat (limited to 'pkg/commands/config.go')
-rw-r--r--pkg/commands/config.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/pkg/commands/config.go b/pkg/commands/config.go
index 12bef33fd..f22d72ffa 100644
--- a/pkg/commands/config.go
+++ b/pkg/commands/config.go
@@ -43,13 +43,6 @@ func (c *GitCommand) colorArg() string {
}
func (c *GitCommand) GetConfigValue(key string) string {
- value, _ := c.getLocalGitConfig(key)
- // we get an error if the key doesn't exist which we don't care about
-
- if value != "" {
- return value
- }
-
- value, _ = c.getGlobalGitConfig(key)
- return value
+ output, _ := c.getGitConfigValue(key)
+ return output
}