I am trying to create a very simple post-commit hook for a repository I have set up on my server. The script is as follows:
REPOS="$1"
REV="$2"
cd /var/www/directory && svn update --username user --password pass
When I run a commit from my SVN client, I get the following error:
post-commit hook failed (exit code 255) with no output.
However, when I run my post-commit hook from cli with sudo bash post-commit, it executes perfectly. Any ideas about what I am doing wrong?