Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have about 8 submodules in my project (/modules/..) and some of them are not fully checking out. In other words, when I run

git submodule init
git submodule update

Some of the submodule directories do not contain the all the files. My first thought was that I might be on a diffenet commit or something. But when I check the latest project commit - and then check the current commit of the submodule they are the same.

git submodule status

How do I get git to pull ALL the submodule files when it loads the submodules? Or rather, how is it possible that I'm only receiving some of the files when I create the submodule folder?

My project structure looks like this:

/project
/modules
  /submodule1
  /submodule2
  /etc...
share|improve this question

1 Answer 1

up vote 0 down vote accepted

I still don't know what the deal is. But I deleted the submodule folders and ran

git submodule update

to re-checkout a copy of the submodules and fix the missing files.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.