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

post-commit

From: Ronan Lucio <ronan_at_tiper.com.br>
Date: 2006-11-28 00:03:58 CET

Hello,

Iīm trying to configure a hook in the subversion-1.4.0.
I have already read the docs and googled about the issue but I
didnīt figured out whatīs wrong.

We have a website in /home/project
This website was configured as a workcopy from the project /opt/svn/project

So, Iīd like after each commit, the website would be updated.

I created the file /opt/svn/project/hooks/post-commit with the content:

-------------------
#!/bin/sh

cd /home/project
/usr/bin/svn update
-------------------

This file is owned by svn user, once httpd run as such user, and has
execute permission.
The directory /home/project is owned by svn user, too.

If I do:

# su svn
$ cd /opt/svn/project/hooks
$ ./post-commit

it works fine, but when I do a commit from my workstation the
workcopy in the server (/home/project) isnīt updated. Only after
I do "su svn; cd /opt/svn/project/hooks; ./post-commit"

Could anybody help me find whatīs wrong?

If svn isnīt (for any reason) getting to execute post-commit, is this
error logged in any place?

Thanks
Ronan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 28 00:04:26 2006

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.