We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1985c50 + 7084110 commit ed8e6b1Copy full SHA for ed8e6b1
hook.sh
@@ -41,7 +41,10 @@ set_colors() {
41
#
42
43
set_editor() {
44
- HOOK_EDITOR=$GIT_EDITOR
+ # $GIT_EDITOR appears to always be set to `:` when the hook is executed by Git?
45
+ # ref: http://stackoverflow.com/q/41468839/885540
46
+ # ref: https://github.com/tommarshall/git-good-commit/issues/11
47
+ # HOOK_EDITOR=$GIT_EDITOR
48
test -z "${HOOK_EDITOR}" && HOOK_EDITOR=$(git config --get core.editor)
49
test -z "${HOOK_EDITOR}" && HOOK_EDITOR=$VISUAL
50
test -z "${HOOK_EDITOR}" && HOOK_EDITOR=$EDITOR
0 commit comments