提问人:Vikas 提问时间:10/25/2023 最后编辑:FriedrichVikas 更新时间:10/25/2023 访问量:32
在消息不存在时限制 SVN 中的提交
To restrict commit in SVN if message is not there
问:
如果没有强制性的 20 个字符提交消息,我想限制用户提交更改。
在 SVN 网站上,我正在尝试在下面添加预提交钩子,但它对我不起作用。
"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
check-logmessage "%1" -t "%2" ^
--min-size 20
IF ERRORLEVEL 1 exit /b 1
当我尝试在 tortoise git 中提交时,错误如下。
Error: Commit failed (details follow):
Error: Commit blocked by pre-commit hook (exit code 1) with output:
Error: VisualSVNServerHooks: E720003: Can't open file 'E:\SVN\format': The system
Error: cannot find the path specified.
Error: This error was generated by a custom hook script on the Subversion server.
Error: Please contact your server administrator for help with resolving this issue.
答: 暂无答案
评论