I would like to restrict write access to the lead branch to only a few developers, allowing others to pull everything out and click on other non-master branches. The idea is that the developer will advance to some other branch, and then, if the code passes the check, the reviewer will merge it into a leading branch.
I'm sure this can be easily done with git commit hook, but I don't know python, and it seems like such a general problem that someone should have written it already. Do you know where I can find such a script? Or, if you have someone lying nearby, paste it here for lazy people like me.
git python permissions hook restrict
Robert Kovačević Nov 06 '10 at 18:11 2010-11-06 18:11
source share