I create a new branch of a repository, set permissions on the branch, and only allow a certain user to access, the result is that either the user can access all branches(RW dev = user2), or all branches cannot access (- master = user2), please help me and points to the maze. . . the repository can be set to only access and modify a certain branch
Below is my config:
@users = user2
repo gitolite-admin
RW+ = git1
repo testing
RW+ master = git1
repo repo2
- master = @users
Double-check the meaning of access: Gitolite cannot restrict read access (if you can see a repository, you see/clone/pull all of the repository)
It can restrict write access (git push
)
You could use a combination of separate repositories and partial copies, for selective read control for branches.
See an example here.
You can also restrict Gitolite VREF restrictions to only one branch?