Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Using Repository permissions to limit access to submodules

C_ Derek Fields
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 4, 2019

I have a source code structure something like this:

src/
Privileged/
<code modules>
Commmon
<code modules>

 For security purposes, I want only certain developers to see the code in the Privileged directory. I created 2 repos - one for Common and one for Privileged and made both submodules of a "src" repo. When I do the following as a Privileged user

git clone --recursive origin/src src

I get all of the expect code. When I do it as a non-privileged user, I get the directory structure, but I don't get the Common files OR the Privileged files. I am guessing that because 'git submodule update --init' fails on Privileged, it fails on Common as well. 

Should this work? If so, what am I doing wrong?

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events