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

Re: Re: "Advanced" problems with post-commit

From: Nico Kadel-Garcia <nkadel_at_comcast.net>
Date: 2006-07-10 02:17:44 CEST

Michael Pfeiffer wrote:
> Hi Ryan,
> thank you for your fast reply.
>>> - edited commit-email.pl to use absolute paths for sendmail and
>>> svnlook
>>> - edited commit-email.pl at the first appearance of $repos, here I
>>> had to set the absolute path to my repository directory to let
>>> svnlook find there pository handed over as $repos
>> I'm not sure why you're having to edit commit-email.pl. It's supposed
>> to be a self-contained script that just works.
> When I don't set the absolute path it doesn't finds the repository
> when I call it from command line. May be thats because I use an own,
> specific path where the reops are located at?

Oh, *that's* easy. Check it by having a post-commit or pre-commit script
write a lgo somewhere, but check out what `dirname $0` yields you as far as
the "hooks" directory used fo rthe pre-commit script itslelf and use the
results to prefix the call of any other scripts in the "hooks" directory or
any configuration files in $REPODIR/conf.

>> If you run "env -i ./post-commit" on the command line, does it still
>> work? "env -i" ignores environment variables. So if it then fails to
>> work, you may still have relative paths around somewhere.
> That works - at least when I have this abolute repository path thingy
> inside the script.
>> Another possibility: make sure the user under which your repository
>> runs (for example the apache user if you're serving under apache) has
>> the ability to read and execute the hook script and the commit-email
>> script.
> Yes, the user is privileged to do that.
> Michael

To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 10 02:18:33 2006

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