I have this in my file called post-commit.sh in my hooks folder:
/usr/bin/svn update /var/www --username XXXXX --password XXXXX
now if I run:
bash post-commit.sh
everything works, but if I do a commit from my pc then it doesn't work. I've added the www-data user to the group "developers" thats the folder and file owner group for the website and svn directory. Ive made the sh file executable. What am I missing? Thanks James
The script should be named post-commit
, not post-commit.sh
.
http://svnbook.red-bean.com/en/1.7/svn.ref.reposhooks.post-commit.html