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

Re: Same old question about REPOS and REV in post-commit

From: Gavin Henry <ghenry_at_suretecsystems.com>
Date: 2005-01-18 15:16:06 CET

<quote who="Jacob Atzen">
> On Tue, Jan 18, 2005 at 12:26:05PM -0000, Gavin Henry wrote:
>> Spent the morning trawling through the user list archives, and I have
>> done
>> all tests to check that post-commit is running with commit-email.pl i.e.
>> ./post-commit /pathname revnum
>> Works fine, but what else to I add to get these commandline vars to be
>> passed to post-commit, as they are just not getting to it.
> I think we need a little more info to help.
> - Is your post-commit script located in the hooks directory of your
> repository?

Thanks, I should have added all this info. Yes it is.

> - Is it "executable by the user(s) who will invoke it (typically the
> user httpd runs as)"? And does the user have filesystem-level
> permission to access the repository?

Yes and yes.

> - Is the commit-email.pl script locate so the post-commit script can get
> to it? Have you set the path to the commit-email.pl script?

Yes and yes.

> - What happens if you add the following to your post-commit script:
> echo $REPOS $REV >> /tmp/svn-log
> Do you get the expected output in /tmp/svn-log?

No, only when run by hand as www-data user on Debian Sarge and Fedora Core 3.

Note, as writting this and running your test, the above is not true. I
su'd to apache ran post-commit and solved the permission errors etc that
came up.

Thanks for the test info. Now when someone (probably me again) configures
this and gets stuck they can hopefully find this small thread and solve
their troubles ;-)


Kind Regards,
Gavin Henry.
Managing Director.
T +44 (0) 1467 624141
M +44 (0) 7930 323266
F +44 (0) 1224 742001
E ghenry@suretecsystems.com
Open Source. Open Solutions(tm).
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 18 15:19:59 2005

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.