Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

git - 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 can I make it so downloading my repository from GitHub will also include the files from the submodule?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share

2.1m questions

2.1m answers

63 comments

56.6k users

...