Nobody should be able to write to the profiles/recruiter directory in the repository, except for a sync user that pushes changes there:
repo test
RW = @contributors gitsync
RW VREF/NAME/profiles/recruiter/ = gitsync
- VREF/NAME/profiles/recruiter/ = @all
This works so far. Now I only want to have that restriction on the master branch, so that contributors can push any stuff to feature branches. But this does not work:
repo test
RW = @contributors gitsync
RW master VREF/NAME/profiles/recruiter/ = gitsync
- master VREF/NAME/profiles/recruiter/ = @all
Even if I add master to the first rule it does not work:
repo test
RW = @contributors
RW master = @contributors
RW master VREF/NAME/profiles/recruiter/ = klausi
- master VREF/NAME/profiles/recruiter/ = klausi_test
The klausi_test user is then not allowed to push stuff in the profiles/recruiter directory to some foobar branch.
I also tried gitolite disallow access for directory on master branch but not on user branch , but that also did not work. Any hints?