Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Include a GitHub submodule automatically in download

I have a GitHub repository and use another project as a submodule. This submodule is also in .gitmodules, the code below:

[submodule "inc/tha"]
    path = inc/tha
    url = git://github.com/zamoose/themehookalliance.git

See also in view on GitHub.

submodule in repo

How is it possible to download my GitHub repository, including the submodule files?

like image 747
bueltge Avatar asked Oct 17 '12 13:10

bueltge


People also ask

How do I download all submodules in git?

Once you have set up the submodules you can update the repository with fetch/pull like you would normally do. To pull everything including the submodules, use the --recurse-submodules and the --remote parameter in the git pull command .

Does git submodule automatically update?

Starting with Git 1.7. 5 it should update submodules automatically by default like you want it to.


1 Answers

This (include the submodule with a GitHub zip or tarball download: the Nodeload service) isn't currently supported, as mentioned in this thread.

This script revision would make the zip itself from a GitHub repo, including submodules, through multiple calls to https://nodeload.github.com/user/repo/zipball/branch.

like image 141
VonC Avatar answered Oct 16 '22 21:10

VonC