Fix: stable issue with corrupt git repository / submodule (#2452)

This commit is contained in:
Pascal Vizeli 2021-01-19 14:21:27 +01:00 committed by GitHub
parent 9ecd03db0e
commit db3fc1421c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,16 +164,16 @@ class GitRepo(CoreSysAttributes):
) )
# Update submodules # Update submodules
for submodule in self.repo.submodules: await self.sys_run_in_executor(
await self.sys_run_in_executor( ft.partial(
ft.partial( self.repo.git.submodule,
submodule.update, "update",
**{ "--init",
"recursive": False, "--recursive",
"init": True, "--depth",
}, "1",
)
) )
)
# Cleanup old data # Cleanup old data
await self.sys_run_in_executor(ft.partial(self.repo.git.clean, "-xdf")) await self.sys_run_in_executor(ft.partial(self.repo.git.clean, "-xdf"))