title: Subversion post-commit hook will not run on commit, script works because I can run it on the command line
body: <p>I have just made a new repository. My server is Ubuntu 12.04 32 bit. 
  I want my commits to be live as soon as I have committed them. This is achieved by making a working copy in my public html directory, and having the post-commit hook update that working copy. I have set that up using the instructions here:</p>
  
  <p><a href="http://www.frenssen.be/content/using-subversion-automatically-update-live-website" rel="nofollow">http://www.frenssen.be/content/using-subversion-automatically-update-live-website</a></p>
  
  <p>The issue is that my post-commit will not run when my project commits. <strong>My project commits just fine</strong>. I know that the script is a valid script too, because I can run it with </p>
  
  <pre><code>env ./post-commit
  </code></pre>
  
  <p>inside of the <code>hooks</code> directory and it properly updates.</p>
  
  <p>I thought it might be a permissions thing so I have made extensive use of <code>chown</code> to ensure that <code>www-data</code> is the owner of:</p>
  
  <pre><code>the repo /home/svn/repo2
  the working copy /var/www/html
  the hook /home/svn/repo2/hooks/post-commit
  the update binary /home/svn/autoupdate/autoupdate
  </code></pre>
  
  <p>But still nothing. My commits are successful, but the hook never runs. My hook script looks like this:</p>
  
  <pre><code>#!/bin/sh
  /home/svn/autoupdate/autoupdate
  </code></pre>
  
  <p>All of the googling seems to be pointing to a permissions issue but I can't figure this one out.</p>