git でエディタを設定

/etc/gitconfig の [core] に editor = /d/OLS/xyzzy/xyzzy.exe と書いたら、fatal: There was a problem with the editor /d/OLS/xyzzy/xyzzy.exe と出た。
起動後に export EDITOR=/d/OLS/xyzzy/xyzzy.exe や export GIT_EDITOR=/d/OLS/xyzzy/xyzzy.exe としたら動くのにな?
/etc/profile に export GIT_EDITOR=/d/OLS/xyzzy/xyzzy.exe と書いた普通に動いたのでよしとしよう。