You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Greg Kolanek <Gr...@osce.org> on 2005/03/02 14:46:03 UTC

Simple post-commit hook script not working

Hi. I’m having a little trouble getting a simple post-commit hook script working, and thought I’d ask here.

The basic setup I’m working with:
WebDAV access via HTTPS directly into the repository served by Apache 2/Subversion/WebDAV
Apache 2 also serving a working copy via regular HTTP on port 80
Post-commit hook script runs svn update on the working copy
(As you might guesss, this is to manage a web site.)

I wrote a post-commit.bat file containing one line:
"C:\Program Files\Subversion\bin\svn" update d:\web

II add a new file via WebDAV/HTTPS, the new file doesn’t show up in the working copy, so I imagine the script is failing. If I run the script from Windows (by double-clicking it), the update succeeds, which suggests the script is correct.

I thought it might be a problem of the user running Apache (SYSTEM) not having access to the working copy, which was created by my own user. However, it also happens if I run Apache as myself rather than SYSTEM.

Am I missing something here? I can’t find any error logs where hook script execution failures might be written.

Thanks for any help,

Greg Kolanek

Re: Simple post-commit hook script not working

Posted by Brian Fohl <br...@gmail.com>.
Try duplicating the commands in your hook script in a command prompt
on the server.  That's the only way I've been able to track down
post-commit script problems.  I don't believe SVN itself keeps any
logs of what happens in post-commit, but you could integrate your own
logging into the script.


On Wed, 2 Mar 2005 15:46:03 +0100, Greg Kolanek <Gr...@osce.org> wrote:
>  
> Hi. I'm having a little trouble getting a simple post-commit hook script
> working, and thought I'd ask here. 
>   
> The basic setup I'm working with: 
> WebDAV access via HTTPS directly into the repository served by Apache
> 2/Subversion/WebDAV 
> Apache 2 also serving a working copy via regular HTTP on port 80 
> Post-commit hook script runs svn update on the working copy 
> (As you might guesss, this is to manage a web site.) 
>   
> I wrote a post-commit.bat file containing one line: 
> "C:\Program Files\Subversion\bin\svn" update d:\web 
>   
> II add a new file via WebDAV/HTTPS, the new file doesn't show up in the
> working copy, so I imagine the script is failing. If I run the script from
> Windows (by double-clicking it), the update succeeds, which suggests the
> script is correct. 
>   
> I thought it might be a problem of the user running Apache (SYSTEM) not
> having access to the working copy, which was created by my own user.
> However, it also happens if I run Apache as myself rather than SYSTEM. 
>   
> Am I missing something here? I can't find any error logs where hook script
> execution failures might be written. 
>   
> Thanks for any help, 
>   
> Greg Kolanek

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