LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Subversion - post-commit hook (https://www.linuxquestions.org/questions/linux-software-2/subversion-post-commit-hook-652876/)

Braynid 07-01-2008 01:38 PM

Subversion - post-commit hook
 
Hey again,

I have a subversion repository running with the apache server.

What I want to do is to add a post_commit hook that would execute a 'svn update' on a working-copy of the repository placed on the server.

Problem is that when I commit something using tortoise_svn via the internet the hook is not executed. 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:

Code:

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

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

Thanks

Braynid 07-02-2008 03:02 AM

After some tests I've done I think that the post-commit script does not run when I do a commit via the Internet. I've put in the script a line to write something in a file ( both script and file had the right permissions and are owned by apache ). After several commits via the Internet ( I use tortoise SVN ) the test file was still empty.

On the other hand if I try to do a commit from a working-copy on the server the script runs as it should.

I'm quite lost...


All times are GMT -5. The time now is 01:06 AM.