diff --git a/supervisor/store/git.py b/supervisor/store/git.py index 58718fd81..4742c398e 100644 --- a/supervisor/store/git.py +++ b/supervisor/store/git.py @@ -160,17 +160,18 @@ class GitRepo(CoreSysAttributes): ) # Update submodules - await self.sys_run_in_executor( - ft.partial( - self.repo.git.submodule.root.update, - **{ - "recursive": False, - "init": True, - "force_remove": True, - "force_reset": True, - }, + if len(self.repo.submodules) > 0: + await self.sys_run_in_executor( + ft.partial( + self.repo.git.submodule.root.update, + **{ + "recursive": False, + "init": True, + "force_remove": True, + "force_reset": True, + }, + ) ) - ) # Cleanup old data await self.sys_run_in_executor(ft.partial(self.repo.git.clean, "-xdf"))