By default, Git uses whatever you’ve set as your default text editor ($VISUAL or $EDITOR) or else falls back to the vi editor to create and edit your commit and tag messages. To change that default to something else, you can use the core.editor setting.
Currently the hook simply uses $EDITOR. It should instead favour core.editor and mirror the fallback approach of Git itself, ref:
Git config allows users to specify an editor:
Currently the hook simply uses
$EDITOR
. It should instead favourcore.editor
and mirror the fallback approach of Git itself, ref:https://github.com/git/git/blob/v2.11.0/editor.c#L10-L30