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,14 +164,14 @@ 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(
|
||||||
submodule.update,
|
self.repo.git.submodule,
|
||||||
**{
|
"update",
|
||||||
"recursive": False,
|
"--init",
|
||||||
"init": True,
|
"--recursive",
|
||||||
},
|
"--depth",
|
||||||
|
"1",
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user