subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brendan Farr-Gaynor <bren...@resolutionim.com>
Subject Hooks
Date Tue, 15 Dec 2009 00:33:40 GMT
Hi All,

SVN newbie here. I'm wondering if there is anyone out there running  
running Subversion on OS X Server (10.6)? I'm trying to use Subversion  
as a team web development solution and need to have committed files  
moved to our central apache web root for web browsing. I see this is a  
popular thing that people are looking for, but I'm having trouble  
getting my hook scripts to run and I'm sure it's got to be a  
permissions issue or something.

Based on some tutorials I've found in different places I've done the  
following:

I created a C program in XCode similar to this (update_svn):

#include <stddef.h>
#include <stdlib.h>
#include <unistd.h>
int main(void)
{
execl("/usr/bin/svn", "svn", "update", "--username",
"YOURSVNUSER", "--password", "YOURSVNPASSWD",
"/Library/WebServer/", (const char *) NULL);
return(EXIT_FAILURE);
}

Created a post-commit script in my /hooks directory that has this:

#/bin/sh
/Library/WebServer/update_svn

Then modified the permissions as such:

$ chown www /Library/WebServer/update_svn
$ chmod +s /Library/WebServer/update_svn

$ chmod +s /myrepo/project/hooks/post-commit

However, it doesn't seem to run (files aren't moved) and I'm perplexed  
as to how to debug this, is there a log file somewhere? I'm not seeing  
anything in /var/log/ for svn?

Does the above look right? Am I missing something? Has anyone out  
there had to do this on an OS X server that could provide some guidance?

I tried running the file from the shell as root (update_svn binary)  
and it reports that it 'Skipped: /Library/WebServer/' what does that  
mean?

Any help would be greatly appreciated!
--
Brendan Farr-Gaynor



Mime
View raw message