You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Adnan Haider <ri...@hotmail.com> on 2007/07/01 04:12:25 UTC

Post-Commit on Windows 2003 Server






I'm using Subversion on Windows 2003 server, and can't get the post-commit hook to work. I've created "post-commit.bat" with the following contents:CD\program files\xampp\htdocs\dev\websitenamesvn updateCD\When I run the file by itself then it works fine, however, it doesn't seem to work when a commit is triggered. What could the problem be?-Adnan 
ps. I've spent almost a day trying to fix this, and finally decided to get help.
_________________________________________________________________
Hotmail to go? Get your Hotmail, news, sports and much more! Check out the New MSN Mobile! 
http://mobile.msn.com

Re: Post-Commit on Windows 2003 Server

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jun 30, 2007, at 23:12, Adnan Haider wrote:

> I'm using Subversion on Windows 2003 server, and can't get the post- 
> commit hook to work.
>
> I've created "post-commit.bat" with the following contents:
>
> CD\program files\xampp\htdocs\dev\websitename
> svn update
> CD\
>
> When I run the file by itself then it works fine, however, it  
> doesn't seem to work when a commit is triggered. What could the  
> problem be?

Use absolute paths for everything in all hook scripts, like:

C:\SVN\svn update "C:\Program Files\xampp\htdocs\dev\websitename"

Or something like that. Adjusted for where you actually have svn  
installed. Paths containing spaces, like your working copy path  
apparently, need to be properly quoted.




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org