问题
Is it possible to set up gitolite acls to allow a user to read, write, and push, but not to delete branches?
回答1:
You should be able to use as a general rule for all repositories:
repo @all
RWCD dummy-branch = foo
The 'D
' is a "deletion" type of permission, which will authorize the deletion of a dummy-branch
, but will make all your existing RW+
rule deny deletion (because they don't have a 'D
')
来源:https://stackoverflow.com/questions/13275420/can-gitolite-prevent-branch-deletes