1

I'm trying to clone a specific branch of a repository with several git submodules, and having no luck with actually cloning them. I'm trying:

git clone --recurse-submodules --branch myBranch -j8 https://github.com/me/myrepo

But, all the submodule folders are empty, even after cloning start.

Also trying git submodule update, git submodule sync...but nothing works, and I'm out of ideas.

narner
  • 2,908
  • 3
  • 26
  • 63
  • Can you point us at a specific repository so that we can try to reproduce the exact problem? Are you running `git submodule init` before `git submodule update` (or alternately, `git submodule update --init`)? – larsks Oct 15 '18 at 01:32

1 Answers1

0

Make sure those submodules are there in mybranch:

If there is no submodule entry, that would explain why they are empty.
If they are, as commented, a git submodule update --init should be enough.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250