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?