How to accomplish read-only git branch using Gerrit access rules -


we use gerrit 2.5-rc1) acls manage access our git projects & branches. try keep rules simple developer groups; refs/heads/* allow push, create reference, push merge commit.

there need mark specific branch, call foo, read only. have tried adding new rule refs/heads/foo/*, allowing read, denying push, push merge commit, etc. (both , without "exclusive" tickbox ticked). in case, developers still permitted push branch.

any idea how without writing server hooks, etc?

for gerrit version think following set should trick:

refs/heads/*     allow refs/heads/foo/* block 

Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -