Fix: stable issue with corrupt git repository / submodule
@@ -164,14 +164,14 @@ class GitRepo(CoreSysAttributes):
)
# Update submodules
- for submodule in self.repo.submodules:
await self.sys_run_in_executor(
ft.partial(
- submodule.update,
- **{
- "recursive": False,
- "init": True,
- },
+ self.repo.git.submodule,
+ "update",
+ "--init",
+ "--recursive",
+ "--depth",
+ "1",
)
)
