[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Simple post-commit hook script not working

From: Greg Kolanek <Greg.Kolanek_at_osce.org>
Date: 2005-03-02 15:46:03 CET

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
Received on Wed Mar 2 15:49:20 2005

This is an archived mail posted to the Subversion Users mailing list.