Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...