【问题】
Linux命令行下用 svn commit -m "XXX" 的方式提交代码改动,失败。错误提示如下:
Transmitting file data .svn: Commit failed (details follow):svn: Commit blocked by pre-commit hook (exit code 1) with output:False [] range "\w-" in regex; marked by <-- HERE in m/^(?:[\w- <-- HERE _]+\/){0-1}branches\// at /local/svn/minsvn/current/lib/SVN/Property.pm line 246.
【可能的原因】
提交代码的svn命令中,comment长度短了。参考:http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-howto-minlogmsgsize.html
【解决】
在提交的命令行的Comment中多加些字符,再提交。比如,将
svn commit -m "XXX"
改成
svn commit -m "Add some code for Case 1"
然后再提交。就成功了。
时间: 2024-10-06 07:06:15