From db3fc1421c8fe6a0cc7decfd765f8632388f54c7 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Tue, 19 Jan 2021 14:21:27 +0100 Subject: [PATCH] Fix: stable issue with corrupt git repository / submodule (#2452) --- supervisor/store/git.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/supervisor/store/git.py b/supervisor/store/git.py index 506d46783..d5ae5ee08 100644 --- a/supervisor/store/git.py +++ b/supervisor/store/git.py @@ -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"))