svn - Subversion failing on post-commit hook? -


I'm trying to overturn, automatically deploys the current working copy to commit.

For example, if a person sees 'public_html' repo and then makes a change, I need to run the SVN 'svn update / path / to / public_html /' svn running on server is.

I have set up a post-cut hook that calls:

/ usr / bin / svn update / path / to / public_html /

I've ensured that the post-cut hook is executable, and if I run the script manually through SSH, it runs properly and updates / path / to / public_html / dir, so we know The post-commit script works fine

The problem is facing whenever I get this error:

  Posting data to the data. SVN: The command failed (follow the details): svn: '/ svn / public_html' merge: 200 OK (http://ourdomain.com)  

The thing is, SVN is lying to your teeth: the committed is not really a failure - if I manually update the DIR (or manually post-committed script) the update and the changes on the server are reflected.

So, does anyone know why my post-committed hook is failing?

I have seen a lot of posts on this topic but any "try to run a post-cut script manually" which I have tried and it works fine .. then post-commit The script is not a problem, it is a problem with SVN.

Any help would be greatly appreciated!

You should know that there is no environment in the hook script. . Which means that you have to use the full path in your script instead of the command, because you have no way. Do you make sure to use the post-commit, because only pre-commit to the post-commit committee Can not fail and start something like this can happen.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -