现在的位置: 首页 > 综合 > 正文

svn: None of the environment variables SVN_EDITOR…问题解决

2018年09月07日 ⁄ 综合 ⁄ 共 404字 ⁄ 字号 评论关闭

问题1:
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
问题原因: 

没有设置svn编辑器的环境变量,主要是import、commit中填写comment要用

解决办法:

编辑 /etc/bashrc 文件,加入如下一行:

export SVN_EDITOR=vim

温馨提示: 
编辑完以后一般需要让配置文件立即生效,可执行命令:
source  /etc/bashrc

抱歉!评论已关闭.