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

Re: SVN Post Commit Email Notifications

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-09-03 23:05:42 CEST

Since you made nice, did you ever get this working?

On Mon, 2005-08-29 at 15:31 -0700, S I wrote:
> 2. Created post-commit and made both files (commit-email.pl too )
> executable: chomd ugo+x 'd it. And since our SVN is running under Apache's
> www group; I chown'd all the files to www:www. Could this be the cause of
> the problem?
>
> 3. Had my Unix/Linux Admin guy to enable mail/sendmail on the server.
>
> 4. I can run things manually at the command prompt, however, the repository
> is not triggered by the commits.
>
> 5. By the way, I have to run everything at the command prompt as 'sudo'!
> Could this be another source of problem?

Change the ownership of the files to whomever accesses the repository.
I *hope* this isn't root.

When someone is having hook problems I ask them to run the program like
so with an empty environment.

$ env -i /path/to/hook/script.pl

For more info try:
$ man env

> /local1/svn/hooks/commit-email.pl "$REPOS" "$REV" -s "SVN Notification: "
> myemail@mydomain.com
> #log-commit.py --repository "$REPOS" --revision "$REV"
>
> exit 2
  ^^^^^^---- Why exit 2? Shouldn't this make all commits fail? I
guess this is one way to test if your hooks are firing.

Cheers,
Chris

-- 
PGP Public Key: http://www.nesser.org/pgp-key/
16:59:42 up 1:24, 2 users, load average: 0.08, 0.16, 0.22
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Sep 3 23:07:11 2005

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