You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you create a template repository containing a submodule, any repositories created from that template do not have the submodule added to it. Specifically, while the ".gitmodules" file is added to the created repository, the submodule object for the folder does not. This means that calls to git submodule init or similar will not work.
My expectation would be that the created repository from the template would contain either a copy of the submodule within it, or a newly generated submodule object. This would allow the cloning developer to use git clone --recurse-submodules to fully create the repository in one go.
Description
If you create a template repository containing a submodule, any repositories created from that template do not have the submodule added to it. Specifically, while the ".gitmodules" file is added to the created repository, the submodule object for the folder does not. This means that calls to
git submodule init
or similar will not work.My expectation would be that the created repository from the template would contain either a copy of the submodule within it, or a newly generated submodule object. This would allow the cloning developer to use
git clone --recurse-submodules
to fully create the repository in one go.I have created an example repository on the Gitea demo site here: https://demo.gitea.com/Vingenuity/submodule-templated-repository demonstrating this issue.
NOTE: This is a different issue from #10316, which is about templates of templates.
Gitea Version
1.22.6
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
Unraid
How are you running Gitea?
I am running the official gitea Docker container via Unraid.
Database
None
The text was updated successfully, but these errors were encountered: