mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-18 14:46:30 +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
|
# 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"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user