I'm trying to make subversion automatically deploy the current working copy upon commit.
eg, if someone checks out the 'public_html' repo and then commits a change, I need SVN to automatically run 'svn update /path/to/public_html/' on the server running svn.
I've set up a post-commit hook that calls:
/usr/bin/svn update /path/to/public_html/
I've ensure the post-commit hook is executable, and if I manually run the script via SSH it runs properly and updates the /path/to/public_html/ dir, so we know the post-commit script works fine.
The problem I'm encountering is that whenever I commit, I get this error:
Transmitting file data .svn: Commit failed (details follow):
svn: MERGE of '/svn/public_html': 200 OK (http://ourdomain.com)
Thing is, SVN is lying through its teeth: the commit does NOT actually fail - if I manually update the dir (or manually run the post-commit script) the update completes and the changes are reflected on the server.
So, does anyone know why my post-commit hook is failing?
I've seen a fair bit of posts on this subject but none seem to have any solutions apart from "try running the post-commit script manually" which I've tried and it works fine.. So the post-commit script isn't the problem, it seems to be a problem with SVN itself.
Any help would be greatly appreciated!!