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

Re: can't manage to make post-commit hook script work

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-06-18 17:54:47 CEST

On Fri, 2004-06-18 at 10:27, Stan Devyatovsky wrote:

> However when I commit changes to 'test' repository, there is no
> reaction at all, I receive nothing in my mail.

1. Start simple. Write hook script that does nothing but "echo 'blah'
>> /tmp/testfile'. That way you can verify that svnserve is actually
running the script.

2. Get more complex. Run the script by hand and verify that mail is
being sent, or whatever. Debug that.

3. Use absolute paths to everything. Assume you have no environment
variables at all.

Most of the time, people have problem with hook scripts because they
assume that if you can run the script by hand, it will work when
svnserve or apache executes it. But usually svnserve and apache execute
the script in anemic environments.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jun 18 17:58:24 2004

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.