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

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

From: Michael Pfeiffer <virtual_worlds_at_gmx.de>
Date: 2006-07-10 07:27:46 CEST

Thanks to all people who helped me: removing the fixed path to the repository fixed the thing. Now I can't call it from the command line but from within SVN everything goes well.

-------- Original-Nachricht --------
Datum: Sun, 9 Jul 2006 20:17:44 -0400
Von: Nico Kadel-Garcia <nkadel@comcast.net>
An: Michael Pfeiffer <virtual_worlds@gmx.de>, Ryan Schmidt <subversion-2006c@ryandesign.com>
Betreff: Re: Re: "Advanced" problems with post-commit

> 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

-- 
"Feel free" – 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jul 10 07:29:13 2006

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