Reputation: 284
i have this problem :
I am using :
running gitolite3 v3.6.6-6-g7c8f0ab on git 1.8.3.1
edited the gitolite.conf :
repo tester
RW+ = user1
RW+ sandbox/ = user2
According to my understanding :
In practic, i created from user1 the branch sandbox, added some data, pushed and tracked it on remote, on user2 i checkedout the branch sandbox, pulled the data, edited some file and when i tried to push the modified file:
remote: FATAL: W refs/heads/sandbox tester testgit DENIED by fallthru
remote: error: hook declined to update refs/heads/sandbox
Eventually i had to "- master = user2" and give right to user2 to RW+ over all repo after to obtain the right to pull/push/delete only on branch sandbox(aswell on any other branches...) in gitolite.conf.
My question is why isn`t it working out of the box with the "sandbox/" branch limiter?
Upvotes: 1
Views: 4163
Reputation: 1323175
The refex field is "a regex that matches a ref".
I don't think sandbox/
would match a branch.
sandbox
would.
Or sandbox$
to restrict to the exact name 'sandbox
'.
Upvotes: 1