title: Visual SVN "post-commit hook failed (exit code 1)"
body: <p>I am trying to write an SVN post-commit hook to update a remote working copy when a commit is made to a specific branch. It should be pretty simple but I am getting a cleanup warning.</p>
  
  <p>Here is my hook </p>
  
  <pre><code>"%VISUALSVN_SERVER%bin\svnlook.exe" dirs-changed %1 -r %2 | findstr "branches/DEV"
  
  If %ERRORLEVEL% EQU 0 (
    "%VISUALSVN_SERVER%bin\svn.exe" update C:\temp\DEV2
  )
  </code></pre>
  
  <p>And this is failing with the following:</p>
  
  <pre><code>post-commit hook failed (exit code 1) with output:
  svn: E155004: Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
  svn: E155004: Working copy 'C:\temp\DEV2' locked
  svn: E200031: sqlite: attempt to write a readonly database (S8)
  svn: E200031: Additional errors:
  svn: E200031: sqlite: attempt to write a readonly database (S8)
  </code></pre>
  
  <p>But there are no locks nor anything to clean up--I'm not touching the 'DEV2' working copy. Running VSVN version 2.7.6, Subversion 1.8 on Windows Server 2k8 R2</p>
  
  <p>I have tried <a href="https://stackoverflow.com/a/5572813/90358">permissions changes</a> and hard coding my own svn credentials.</p>
  
  <p>Edit: I tried using the full path to VisualSVN's svn tools. With that setup, I got the "svn cleanup" error. When I did that (just for fun) now the commit hangs for ever...seems like maybe svn update is trying to prompt the user.</p>