Use $GIT_EDITOR, if set, in preference to $EDITOR.