0

I'm now upgraded to gitlab 8.12, I've added two submodules, but I'm unable to get the contents of those submodules. The .gitmodules file doesn't seem to be used here.

Here's the command I've used to get those submodules:

git submodule update --init --recursive

So, Is there anything I've to add additionally to get the submodule contents ?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
sri vignes
  • 163
  • 1
  • 2
  • 8

1 Answers1

0

As in this answer, when you add a submodule, you need to add the .gitmodules file and the folder representing the root directory of the nested repo referenced by that submodule.

It is the gitlink (special entry in the index). You need to make sure that gitlink exists if you want your submodule to be properly checked out.

git ls-tree HEAD mysubmodule 
160000 commit c0f065504bb0e8cfa2b107e975bb9dc5a34b0398  mysubmodule 
   ^
   |- do you see 160000?
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250