Is it possible to have two different submodules depending on git branch?

Viewed 1878

My company (consultancy) is developing for another company (customer). The two main engineers on the project for the consultancy (lead iOS and lead Android) have login capabilities for the customers git for maintenance of the source code. Besides that we (consultancy) have an internal git setup for our developers to use.

To manage the internal work done it is committed to the internal git and tested and merged by one of the leads to the customers git to release source code to the client.

One project we are working on requires the use of a library which is submodule, managed by another consultancy for the customer. Our two main developers have access to this submodule as we have access to the customers git repo.

Is it possible to create a local version of the submodule on our local git for access by our other developers and maintain the git-submodule address on the external git repo?

2 Answers
Related