SVN hooks for Windows

后端 未结 9 936
温柔的废话
温柔的废话 2021-01-30 00:18

I did a little googling and found that there isn\'t really a resource of SVN hooks for Windows. So I figured I\'d start a wiki here to centralize it.

If you contribute,

9条回答
  •  -上瘾入骨i
    2021-01-30 01:07

    Prevent commits with empty comments

    1. pre-commit
    2. prevents commits with empty comment

    Source:

    "c:\Program Files\Subversion\bin\svnlook.exe" log -t %2 %1 | FindStr [a-zA-Z0-9]
    IF %ERRORLEVEL% EQU 0 GOTO OK
    echo "Commit Comments are Required" >&2
    exit 1
    :OK
    exit 0
    

提交回复
热议问题