0
SVN(Visual SVNサーバーとTortoiseクライアント)でプリコミットフックを使用しています。それは完璧に働いていた。これで、エンタープライズアーキテクト(ここではsvn.exeアドレスを指定します)を介してコミットします。今すぐpre-commitフックがコミットをブロックします。以下 は、このためのソリューションを提案してくださいcommitフックSVNのプリコミットフックがEnterprise Architectで予期したとおりに動作しない
REM Pre Commit hook for having a comment of at least 20 characters.
setlocal enabledelayedexpansion
set REPOS=%1
set TXN=%2
set SVNLOOK="%VISUALSVN_SERVER%\bin\svnlook.exe"
SET M=
REM Concatenate all the lines in the commit message
FOR /F "usebackq delims==" %%g IN (`%SVNLOOK% log -t %TXN% %REPOS%`) DO SET M=!M!%%g
REM Make sure M is defined
SET M=0%M%
REM Here the 20 is the length we require
IF NOT "%M:~20,1%"=="" goto NORMAL_EXIT
:ERROR_TOO_SHORT
echo "Commit note must be at least 20 letters" >&2
goto ERROR_EXIT
:ERROR_EXIT
exit /b 1
REM All checks passed, so allow the commit.
:NORMAL_EXIT
exit 0
です。 エラーコードはE165001
https://stackoverflow.com/questions/33789148/svn-e165001-commit-blocked-by-pre-commit-hook-exit-code-255-with-no-output –
https://stackoverflow.com/questions/12837754/svn-commit-blocked-by-pre-commit-hook-exit-code-3-output-of-output –
@ThomasKilianあなたから提供されたいずれのリンクでも解決策が見つかりません –