Consider the following repo:
REPO/src/A/
REPO/src/B/
Is it possible by having only 1 repo to implement the following restrictions?
- On master branch, allow full access to maintainers role
- On master branch, disallow access to A but allow for B to contributors role.
- On personal branches, allow full access to A and B to creators.
With Gitolite V3 or 'g3' and its VREF, it should be possible to implement those restrictions.
But the access you can manage is only for write-access.
If a user can clone a repo, he/she will have read-access to all the repo (as mentioned in "gitolite: allow to change only selelected files").
If you really want to limit read-access, you might try gitolite '
partial-copy
'.Few notes:
An access rule is like:
<zero or more refexes>
means your can combines refexesThat would give something like (not tested):