Can gitolite prevent branch deletes?

我的未来我决定 提交于 2019-12-10 11:53:34

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!