Reputation: 191
Is there any way to give user permissions for specfic files in a GITLAB-Repository
? I want to give a user access to only one directory in my repository.
GitLab Version: 8.1.3
Upvotes: 7
Views: 7452
Reputation: 1324268
You can protect a branch in GitLab, but not a full repo: if a user can see a repo, he/she can clone it all.
The easiest workaround would be to setup a separate repo with only the content of that directory in it, for you to monitor and extract a patch whenever something changes in the folder:
git format-patch master --stdout > a_folder.patch
Upvotes: 3
Reputation: 1038800
I am afraid that what you are asking for is not supported. You cannot grant user permissions for specific files in a git repository. In gitlab permissions are granted per repository.
Upvotes: 3