[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: Dick Davies <rasputnik_at_hellooperator.net>
Date: 2004-03-18 12:27:36 CET

* Lauri Kotilainen <postmaster@true-evil.net> [0351 17:51]:
> Dick Davies wrote:

> >when I run
> >"./post-commit /path/to/repo 22 "
> >I get a mail, but nothing when I commit.

> I'm not sure if the manual says this -- but you don't have a current
> directory set, and _your path env variable is empty_, so you need to use
> absolute paths for commands, or set the path yourself.

Cheers, that fixed it.

For some reason I thought the script would inherit
my path (since I'm basically running them as children of my shell).
 Now I think of it this way makes more sense, at least unsetting the path
makes svnserve, file:// and Apache consistent...

Is it possible to mention this in the "Hook Scripts" section:


? It isn't in the FAQ either.
And maybe in *-commit.tmpl too? There's a mention of the working
directory issue but not the PATH. I assumed it would look in hooks/
since commit-email.pl was mentioned with no path information...

Thanks for the quick fix anyway.

Accuracy, n.:
	The vice of being right.
Rasputin :: Jack of All Trades - Master of Nuns
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Mar 18 12:32:12 2004

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