To restrict commit in SVN if message is not there

58 views Asked by At

I want to restrict user to commit a change if mandatory 20 chars commit message is not there.

From the SVN website, i am trying to add below pre-commit hook but it is not working for me.

"%VISUALSVN_SERVER%\bin\VisualSVNServerHooks.exe" ^
check-logmessage "%1" -t "%2" ^
--min-size 20
IF ERRORLEVEL 1 exit /b 1

When i am trying to commit in tortoise git getting below error.

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.  
0

There are 0 answers