Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Judging from your executable file path (<code>C:\wamp\bin\php\php5.4.3\php.exe</code>), I assume you are working on a Windows machine. </p> <p>The <code>pre-commit</code> file in your question looks like a Linux Bash Shell script. Bash has a different syntax from a batch file you would use under Windows.</p> <p>I suggest you use a <code>pre-commit.tmpl</code> file made for a Windows machine. You probably have onde of these in your <code>hooks</code> folder. I use a Linux machine, so unfortunately I can't help you further on this search...</p> <p>The <code>pre-commit</code> hook will look like this (excerpt taken from <a href="http://blogs.wandisco.com/2011/11/10/an-introduction-to-subversion-hook-scripts-on-windows/" rel="nofollow">An Introduction to Subversion Hook Scripts on Windows</a>):</p> <pre><code>@echo off :: Stops commits that don't include a log message of at least 6 characters. @echo off setlocal rem Subversion sends through the repository path and transaction id set REPOS=%1 set TXN=%2 svnlook log %REPOS% -t %TXN% | findstr ...... &gt; nul if %errorlevel% gtr 0 (goto err) else exit 0 :err echo --------------------------------------------------------------------------- 1&gt;&amp;2 echo Your commit has been blocked because it didn't include a log message. 1&gt;&amp;2 echo Do the commit again, this time with a log message that describes your changes. 1&gt;&amp;2 echo --------------------------------------------------------------------------- 1&gt;&amp;2 exit 1 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload