RE: Hook Script problem with no error output
From: Kostas Rondinoulis <rondinos_at_hotmail.com>
Date: 2007-10-11 21:41:58 CEST
Well unfortunately you are wrong, because my script worked that way.
> Date: Thu, 11 Oct 2007 15:07:08 -0400> From: john.peacock@havurah-software.org> To: rondinos@hotmail.com> CC: jeremyp@jeremyp.net; users@subversion.tigris.org> Subject: Re: Hook Script problem with no error output> > Kostas Rondinoulis wrote:> > No, that's not possible. svn user is svn, /tmp/svn-test.log belongs to > > svn user but it also has 666 permissions and anybody can read and write > > there. I don't believe it's a permission issue, I wish I had a way to > > find out how I can debug it,> > I've got a much longer e-mail in my Drafts folder at home, which I'll > send later tonight, but the short answer is:> > Don't debug commit scripts using Subversion until you have debugged > using the same user outside of Subversion. At least 50% of the > difficulties people have with commit scripts is user rights (even though > you think you've already checked that).> > So, what you need to do is run that script in a shell as the user svn, ala> > $ su> # su -s /bin/bash svn> $ cd /path/to/repos/hooks> $ ./post-commit $PWD 999> > It won't work for some reason and this will tell you what is going on. > It could be that you forgot to set the executable bit on post-commit. > It could be that the rights _are_ funky on the file. Whatever. Only > when this works will you be able to do it as part of a Subversion commit.> > I'll finish up my fuller discussion of writing/debugging commit scripts > and post it tonight...> > John> > ---------------------------------------------------------------------> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org> For additional commands, e-mail: users-help@subversion.tigris.org>
|
This is an archived mail posted to the Subversion Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.