Hi,
Let's say I have 3 repositories - A, B, C.
B is a submodule of A and C is a submodule of B. That means that when I run "git submodule update --init --recursive", I received the following directory structure: "A/B/C".
Modeling that in repo's default.xml is easy - just put multiple projects and adjust the paths accordingly.
What I'm wondering about is the situation where I have another repository D which needs B as well (and that means it also needs C as a submodule of B).
Currently, I am duplicating the definitions in repo for D.
So it looks kind of like this:
<project name="A" remote="origin" path="A"/>
<project name="B" remote="origin" revision="master" path="A/B"/>
<project name="C" remote="origin" revision="master" path="A/B/C"/>
<project name="D" remote="origin" path="D"/>
<project name="B" remote="origin" revision="master" path="D/B"/>
<project name="C" remote="origin" revision="master" path="D/B/C"/>
Can I somehow abstract the structure of B and re-use in the different repositories?