mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 18:16:32 +00:00
Fix: stable issue with corrupt git repository / submodule (#2452)
This commit is contained in:
parent
9ecd03db0e
commit
db3fc1421c
@ -164,16 +164,16 @@ 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,
|
||||
},
|
||||
)
|
||||
await self.sys_run_in_executor(
|
||||
ft.partial(
|
||||
self.repo.git.submodule,
|
||||
"update",
|
||||
"--init",
|
||||
"--recursive",
|
||||
"--depth",
|
||||
"1",
|
||||
)
|
||||
)
|
||||
|
||||
# Cleanup old data
|
||||
await self.sys_run_in_executor(ft.partial(self.repo.git.clean, "-xdf"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user