Windows Pre-commit hook for comment length Subversion
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows Pre-commit hook for comment length Subversion相关的知识,希望对你有一定的参考价值。
@echo off
:: Stops commits that have empty log messages.
@echo off
setlocal
rem Subversion sends through the path to the repository and transaction id
set REPOS=%1
set TXN=%2
svnlook log %REPOS% -t %TXN% | findstr . > nul
if %errorlevel% gtr 0 (goto err) else exit 0
:err
echo. 1>&2
echo Your commit has been blocked because you didn‘t enter a comment. 1>&2
echo Write a log message describing the changes made and try again. 1>&2
echo Thanks 1>&2
exit 1
http://stackoverflow.com/questions/869248/windows-pre-commit-hook-for-comment-length-subversion
以上是关于Windows Pre-commit hook for comment length Subversion的主要内容,如果未能解决你的问题,请参考以下文章
.git/hooks/pre-commit: line 2: ./node_modules/pre-commit/hook: No such file or directory