I have implemented a git server using all necessary hooks mentioned in the Git Hooks section. While implementing the server side hook for user ACL which is available in this link, I have the following issues:
- I have 130 folders in the repository but I want to deny access to only 2 folders in this repository and allow access to all the other folders.
- To do so, in the 'acl_file' I have added all the folder names in the specified format. So, there are 130 folders in this file and it is very difficult to go and check whether the user is available in the entry for each folder.
- Also, I cannot keep checking which developer is checking-in the files in which folder.
All I want is, Is there a way to simply give an entry in this 'acl_file' so that all the users will receive access to all the folders except the two special folders whose access has to be restricted?
Note:
I tried to provide avail to all the folders by giving the following line:
avail|user1,user2| - grant permission to all folders
unavail|user1|xyz - deny permission to xyz folder.
But the user1 gets access for xyz folder even though I have given unavail for the folder.
As this does not work, can anyone provide an alternate method that will provide access to all folders in the repository and deny permission for any specific folder alone?