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

Re: Simple post-commit hook script not working

From: Brian Fohl <brian.fohl_at_gmail.com>
Date: 2005-03-02 19:15:16 CET

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 <Greg.Kolanek@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
Received on Wed Mar 2 19:17:40 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.