SVN Post Commit hook

Some days ago, I got a requirement of giving access to 3 users to my SVN repo over ssh.

#groupadd dev
#useradd -g dev auser
#useradd -g dev buser
#useradd -g dev cuser

Then set the passwords for each user.

For SVN, update changes, you need to have the working copy owned by dev group

#chmod 0775 -R myworkingcopy
#chown -R apache:dev myworkingcopy

For svn post commit hook

#chown apache:dev post-commit
#chmod 0755 post-commit

The point here is that the user committing the changes should have the write permissions to the working copy and execute permissions on the post-commit hook

and all is good.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>