LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 07-01-2008, 01:38 PM   #1
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Rep: Reputation: 15
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
 
Old 07-02-2008, 03:02 AM   #2
Braynid
Member
 
Registered: May 2006
Location: Romania
Distribution: CentOS
Posts: 140

Original Poster
Rep: Reputation: 15
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...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Subversion Post-Commit hook script... will not run mattp52 Linux - Server 2 02-10-2008 01:33 PM
subversion post-commit twantrd Linux - Software 0 02-13-2007 02:37 PM
subversion post-commit hook problems pajamabama Linux - Server 2 01-19-2007 05:14 PM
subversion commit failures irfanhab Linux - Software 0 06-05-2006 09:43 PM
Subversion -> commit? hylke Linux - Newbie 1 05-15-2005 08:44 AM


All times are GMT -5. The time now is 05:06 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration