summaryrefslogtreecommitdiffstats
path: root/pkg/commands/files.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/files.go
parent09f32d4f845511638ec162be426eeffb51036b6b (diff)
remove go-gitconfig package
Diffstat (limited to 'pkg/commands/files.go')
-rw-r--r--pkg/commands/files.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/commands/files.go b/pkg/commands/files.go
index 93d1ccf03..6938bd87b 100644
--- a/pkg/commands/files.go
+++ b/pkg/commands/files.go
@@ -268,7 +268,7 @@ func (c *GitCommand) ResetAndClean() error {
// EditFile opens a file in a subprocess using whatever editor is available,
// falling back to core.editor, VISUAL, EDITOR, then vi
func (c *GitCommand) EditFile(filename string) (*exec.Cmd, error) {
- editor, _ := c.getGlobalGitConfig("core.editor")
+ editor := c.GetConfigValue("core.editor")
if editor == "" {
editor = c.OSCommand.Getenv("VISUAL")