X Tutup
Skip to content

Commit 7c8b69f

Browse files
author
Nate Smith
authored
Merge pull request cli#329 from ahmedelgabri/master
Check for $GIT_EDITOR first
2 parents 8467c94 + ff2d5fa commit 7c8b69f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/surveyext/editor.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ func init() {
2626
if runtime.GOOS == "windows" {
2727
editor = "notepad"
2828
}
29+
if g := os.Getenv("GIT_EDITOR"); g != "" {
30+
editor = g
31+
}
2932
if v := os.Getenv("VISUAL"); v != "" {
3033
editor = v
3134
}

0 commit comments

Comments
 (0)
X Tutup