今天在執行 svn ci 時,出現了下面的錯誤
svn: Commit failed (details follow):
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR are set, and no 'editor-cmd' run-time configuration option was found
看起來就是沒設定 SVN_EDITOR,所以在 commit 時,
他不知道要用那個編輯器。
記得以前的也沒設定過呀,真奇怪。
反正就設定一下吧。
# vi ~/.bash_profile
輸入
# export SVN_EDITOR="/usr/bin/vim"
存檔離開,重新登入,
echo $SVN_EDITOR 檢查一下。
沒問題的話,再去 commit 一次,就可以了。