Is it possible to download submodules for a repository with only the working directory?
If I download a tarball of a repository from GitHub, that is equivalent to a shallow clone without the .git
folder, is it at all possible to "download" the submodules into the working directory?
I tried git init && git submodule update --init
, but this neither initializes nor does it update the submodules. The .gitmodules
file is in the current directory.
Update: Some more background on the question: We'd like to use tarballs for checking out repositories at Travis CI, but several people use git submodules. "Don't use Git submodules" would therefore not be a good answer, but the answer doesn't really have to be something maintainable either. I just want a folder that has the code checked out and with the submodules initialized, there's no need for anything that allows me to pull down more changes later.