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

Post-commit hook - won't run

From: Popa Gerald <brayn_at_brayn.ro>
Date: Fri, 4 Jul 2008 00:10:42 +0300

Hey

I have a subversion repository running with the apache server. What I want
to do is to extract all the files form the repository to a folder on the
server after every commit. I want to extract the files to the web-root so
the site is up to date after each commit. One question is: how can I extract
the files each time, should they overwrite or something like this ?

Another problem is that when I commit something using tortoise_svn via the
internet the hook is not executed (I've tried to make the script echo
something into a file owned by apache with 777 permissions and it won't even
do that) . From what I've seen if I try to commit something directly from
the server it's ok.

I've changed the owner to apache (used by httpd) for both the hook script
and the repository. Also I've checked that there are writing permissions on
the repository folder.

The hook script is named 'post-commit' and it looks like this:

*/usr/bin/svn update /path/to/working-copy *

Do you have any ideas on why won't it work ?

Thanks
Received on 2008-07-04 16:39:21 CEST

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.