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 <email@example.com>
An: Michael Pfeiffer <firstname.lastname@example.org>, Ryan Schmidt <email@example.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
> 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
> 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: firstname.lastname@example.org
For additional commands, e-mail: email@example.com
Received on Mon Jul 10 07:29:13 2006