[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

Hello,

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

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.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.