svn commit时出错
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拿不到log message
解决方法2种
1:附上参数 --message (-m) 或 --file (-F)即可
比如:svn ci -m "fix bugs in xxx.cpp"
或者将log message写到指定文件中,如message.log,然后svn ci -F message.log
2:设置SVN_EDITOR
exprot SVN_EDITOR=vim
或在~/.bash_profile中添加一行:export SVN_EDITOR=vim