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

Re: post-commit hook won't run

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-03-17 18:51:19 CET

On Wed, 2004-03-17 at 11:47, Dick Davies wrote:
> Is there a step missing from the manual?
>
> I've mv'ed post-commit.tmpl to post-commit, make it executable,
> copied commit-email.pl into hooks/ and made *that* executable
> and edited the mail address in it,
>
> when I run
> "./post-commit /path/to/repo 22 "
> I get a mail, but nothing when I commit.
>
> I'm not using svnserve or apache, just file:// protocol - would that
> matter?

That shouldn't matter.

When the 'svn' process runs the hook script, it might be running with a
different environment than when you run the hook script by hand. Make
sure the script is only using absolute paths. And as an experiment,
write a hook script that just adds text to a file, just to verify that
the hook is, in fact, running at all.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Mar 17 18:52:12 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.