Using gitosis to specify permissions per branch?

前端 未结 4 755
生来不讨喜
生来不讨喜 2021-01-04 19:25

With gitosis, is it possible to specify write permissions so that users can push freely to branches with their own name, but not merge with the master? E.g. $USER/test1 .. $

4条回答
  •  無奈伤痛
    2021-01-04 20:11

    Gitosis controls access to repositories, but not by branch or commit. So you could put the master in a repo by itself which had read-only access and let users push their individual branches to another repo ( or one per user, as you say). I haven't seen anyone extend gitosis for finer-grain control.

    If you really need to restrict your users' access that much and you want to use Git, then perhaps you should only take patches by e-mail and keep your repo as read-only.

提交回复
热议问题