Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Submodules configuration for a submodule inside a submodule

I want to clone the toppra repository inside the toppra-extension repo, and to do so I have my GitLab .gitmodules as follows:

[submodule "toppra_extensions"]
  path = toppra_extensions
  url = https://gitlab.inria.fr/auctus-team/components/motion-planning/toppra_extensions.git

[submodule "toppra_extensions/toppra"]
  path = toppra_extensions/topra
  url = https://github.com/hungpham2511/toppra.git

the problem is that: git submodule sync is not synchronizing the toppra submodule, can you please tell me what should I change to make the synchronization automated using .gitmodules? thanks in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

toppra_extensions already has toppra as a submodule.

To properly clone your project remove [submodule "toppra_extensions/toppra"] from the superproject’s .gitmodules:

git config -f .gitmodules remove-section submodule.toppra_extensions/toppra

Use git clone --recurse-submodules to clone, git submodule sync --recursive and git submodule update --init --recursive to update.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading