Monday, August 3, 2009

Hooks in Subversion?

How do I get the subversion post-commit hook to work in Windows. I've created a post-commit.bat but the script just isn't getting called. Any ideas?

Hooks in Subversion?
1) Make sure that the post-commit.bat file is in the hooks folder of your Subversion repository (on the server side). As yet, Subversion does not have client-side hook scripts.


2) Perhaps the script is being called, but its behaviour is not what you expect. Add some tracing code to the script and see what happens. Did you perhaps intend to write a pre-commit script?
Reply:That's pretty much it. make sure the script is in the right place (in your repository folder, in \hooks) and make sure that the user that the svn server runs as has read permissions on the script. you connect to your repository using svn:// something, right? not file:// ...



visual arts

No comments:

Post a Comment