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

Re: post-commit

From: Ronan Lucio <ronan_at_tiper.com.br>
Date: 2006-11-28 18:17:55 CET


I did a new test about this issue.
I added the follow lines in the post-commit file:

echo $REV >> /home/project/revision.log

And the "revision.log" file is updated after each commit.
In other words: post-commit is running fine, but "svn update"
inside it, isn´t.

Is there anyone using subversion for a website?
How do you do to update the website?

Thank you,

Ronan Lucio escreveu:
> 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?

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

This is an archived mail posted to the Subversion Users mailing list.