2011年7月27日 星期三

SVN Editor Setting

SVN Editor未設定時,會出現下面訊息。

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 is set, and no 'editor-cmd' run-time configuration option was found

解決方法:
在 Shell 的 Config 中設定編輯器。
  • zsh:編輯 ~/.zshrc
  • bash:編輯 ~/.bash_profile
加上 export SVN_EDITOR="/usr/bin/vim"

沒有留言:

張貼留言