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

RE: Post-Commit Hook

From: Gale, David <David.Gale_at_Hypertherm.com>
Date: 2005-12-09 18:45:25 CET

King, Rogie wrote:
> I am creating a post-commit hook. The intent is to do an svn update
> in the post-commit hook. I've got the post-commit working to do the
> email in this line:
>
> REPOS="$1"
>
> REV="$2"
>
> /usr/home/svn/commit-email.pl "$REPOS" "$REV" -r me@mydomain.com
> me@mydomain.com
>
> The above code is working lovely. As soon as I add this line, the
> post-commit hook bombs:
>
> /usr/local/bin/svn update
> /usr/home/httpd/domains/www.carroll.edu/siteprod
>
> If I "su svn" on the server and try to run that command in command
> line, I get the following message:
>
> svn: Can't open file
> '/usr/home/httpd/domains/www.carroll.edu/siteprod/.svn/lock':
> Permission denied
>
> I also recursively chown'd my directory to change the ownership of
> the repo files' owner to svn.
>
> Still not working. Any help?

Are you sure you chown'd the .svn directory? What're the output of the
following?

ls -ld /usr/home/httpd/domains/www.carroll.edu/siteprod/.svn
ls -l /usr/home/httpd/domains/www.carroll.edu/siteprod/.svn/lock

-David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Dec 9 18:51:37 2005

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