Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pre-commit hook to block the commit other than svnsync

Tags:

svn

svnsync

I need to maintain a mirrored repository for users(read-only). I need to block all commits except the commit from svnsync. I think I can use a pre-commit hook to block commits other than the svnsync?

How can I do this?

like image 402
user1553605 Avatar asked Dec 02 '25 09:12

user1553605


1 Answers

Why use a hook? Can't you just use the authz file to set appropriate permissions?

E.g.

[/]
svnsync = rw
* = r
like image 94
Blorgbeard Avatar answered Dec 04 '25 20:12

Blorgbeard



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!