Only export submodules that exist in the submodule mapping.

This commit is contained in:
Dave Townsend
2019-12-07 10:21:26 -08:00
parent 0f49bfe0db
commit acf93a80a9

View File

@@ -171,7 +171,8 @@ def refresh_gitmodules(ctx):
gitmodules=""
# Create the .gitmodules file and all submodules
for name,subrepo_info in ctx.substate.items():
gitmodules+=refresh_hg_submodule(name,subrepo_info)
if name in submodule_mappings:
gitmodules+=refresh_hg_submodule(name,subrepo_info)
if len(gitmodules):
wr('M 100644 inline .gitmodules')