I'm trying to put a submodule into a repo.
The problem is that when I clone the parent repo, the submodule folder is entirely empty.
Is there any way to make it so that 'git clone parent' actually puts data in the submodule folder?
example: http://github.com/cwolves/sequelize/tree/master/lib/
nodejs-mysql-native
is pointing at an external git, but when I checkout the sequelize
project, that folder is empty...
If your submodule was added in a branch be sure to include it in your clone command...
Try this:
It automatically pulls in the submodule data assuming you have already added the submodules to the parent project.
You have to do two things before a submodule will be filled:
Submodules parallel fetch aims at reducing the time required to fetch a repositories and all of its related submodules by enabling the fetching of multiple repositories at once. This can be accomplished by using the new --jobs option, e.g.:
According to Git team, this can substantially speed up updating repositories that contain many submodules. When using --recurse-submodules without the new --jobs option, Git will fetch submodules one by one.
Source: http://www.infoq.com/news/2016/03/git28-released