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

Re: Hook Script problem with no error output

From: John Peacock <john.peacock_at_havurah-software.org>
Date: 2007-10-11 21:07:08 CEST

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
Received on Thu Oct 11 21:15:05 2007

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.