I have Gitloite version 3 hosted on Amazon WS (Git v1.9.1/gitolite v3.6.1-6)
I have the following setup:
Acme-Repository
|
|------- <JEE>
|
|--------<Android>
|
|--------<iPhone>
I need to restrict the user's permission as follows to the folders:
• Usera - Read/write - JEE
• UserB - Read/write - Android
• UserC - Read/write - iPhone
I have got the following setup in the gitolite.config
RW+ Jee/ = UserA
RW+ Android-App/ = UserB
RW+ iPhone-App/ = UserC
While pushing as UserA
, I am getting the following error:
remote: FATAL: W refs/heads/master Acme-Repository UserA DENIED by fallthru
remote: error: hook declined to update refs/heads/master
I've tried:
RW+ NAME/Jee/ = UserA
..
AND
RW+ refs/head/Jee/ = UserA
..
But both returned the same results. What could be wrong? I tried this, this and this
Update - Now working configuration
After Original Author Sitaram's answer on google groups and answer from @vonc - now I have the following and works like a charm:
@AllDevelopers = UserA UserB UserC
@Jee = UserA
@Android = UserB
@iPhone = UserC
RW+ = @AllDevelopers
- VREF/NAME/Jee/ = @Android @iPhone
- VREF/NAME/Android-App/ = @Jee @iPhone
- VREF/NAME/iPhone-App/ = @Android @Jee
What the above configuration in human language means -
- @AllDevelopers group will have access to the repository, but
- @Android and @iPHone are denied access to Jee folder and subfolders.
- @Jee and @iPhone developers are denied access to Android-App folder and subfolders.
- @Android and @Jee developers are denied access to iPhone-App folder and subfolders.