凹凸棒石可以防止分支删除吗?
问题描述:
是否可以设置gitolite acls以允许用户读取,写入和推送,但不能删除分支?
Is it possible to set up gitolite acls to allow a user to read, write, and push, but not to delete branches?
答
您应该可以将所有存储库用作一般规则:
You should be able to use as a general rule for all repositories:
repo @all
RWCD dummy-branch = foo
"D
"是删除" 许可类型 ,这将授权删除dummy-branch
,但会使您的所有现有 RW+
规则拒绝删除(因为它们没有'D
')
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
')