I have two code libraries A and B and have started developing an application M. All three of these are stored in their own repository.
My problem is that I have a dependency such that A uses submodule B, but M uses both submodules A and B.
As far as I can tell I'll have two copies of the same submodule B for the same main project. But it would never make sense (in this setup) for them to be different, as they represent the same library in the same application.
Is there a way to work around this, so that when I work on M I have only one copy of A and B?