Open S0AndS0 opened 4 years ago
I'm not able to reproduce. I created a github project template with a submodule. Cloning and creating new instances of the template appears to work correctly.
Interesting, perhaps it's been fixed. ... Though to clarify the steps; are ya forking the template via the GitHub Web-UI and then cloning the fork, or cloning the template to a separate directory?
Describe the bug
When attempting to use this repository as a Template, the Git Submodules break. Example broken repository
To Reproduce
Click on the Use this template button, then clone the resulting repository.
Steps that did not resolve issue
I've attempted the following...
git clone --recurse-submodules <URL>
git submodule update --init --merge --recursive
... but each fail to download/initialize Git Submodules.
I've attempted to copy configuration blocks from the working repository, eg...
gh-pages-template/.git/config
... to the broken repository, eg...
... and re-running the previous two command, however, this does not resolve the issue of Git Submodules failing to download/initialize.
Expected behavior
Cloning with
--recurse-submodules
option...... should also setup Git Submodules.
Updating/upgrading submodules via...
... or forcing remote downloads...
... should also setup Git Submodules. But these command do not do anything productive.
Additional context
An email has been sent to @GitHub with similar information that shows Template repositories break Git Submodules. Until a fix is made on their end likely a script will need to be written for those utilizing this repository as a Template.