SVN命令行提交“--This line, and those below, will be ignored--”

今天phpstorm突然抽风,导致svn不能用,无奈只好用svn命令来提交。

1
svn commit -m "init"

结果报错

1
2
3
4
5
6
7
8
9
10
11
12
13
--This line, and those below, will be ignored--

M webroot/thatyear/js/main.js
~
~
~
~
~
~
~
~
~
"svn-commit.2.tmp" 4L, 83C

直接保存发现会出现以下结果

1
2
Log message unchanged or not specified
(a)bort, (c)ontinue, (e)dit:

输入c提交
我这是设置了SVN提交默认编辑器的时候才会这样,默认是不会设置的。按以下操作设置提交的编辑器

1
vi ~/.subversion/config

找到[helpers]下的 editor-cmd 节,更改为vi即可

1
2
[helpers]
editor-cmd = /usr/bin/vi
# svn

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×