From ba19472c30dac8ecd804c1924284abd629fe8230 Mon Sep 17 00:00:00 2001 From: Abderrahmane Date: Fri, 24 Nov 2023 18:11:53 +0100 Subject: [PATCH] Revert "scripts: serie_update: fetch submodules" This reverts commit 818cef7f16ea0a2cb211ae3de06ea8a1e0d0da1a. --- scripts/serie_update.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/serie_update.py b/scripts/serie_update.py index 3c24a7534..a832aa474 100644 --- a/scripts/serie_update.py +++ b/scripts/serie_update.py @@ -192,22 +192,14 @@ def clone_cube_repo(self): # if already exists, then just clean and fetch self.os_cmd(("git", "clean", "-fdx"), cwd=self.stm32cube_serie_path) self.os_cmd(("git", "fetch"), cwd=self.stm32cube_serie_path) - # this is useful when HAL drivers submodules are not aleardy - # present locally, otherwise "git fetch" is sufficient - self.os_cmd(("git", "submodule", "update", "--init"), - cwd=self.stm32cube_serie_path) branch = self.major_branch() self.os_cmd( ("git", "reset", "--hard", branch), cwd=self.stm32cube_serie_path, ) else: - # HAL drivers are now included as git submodules in upstream - # STM32Cube repositories - # So, we need to add --recursive or --recurse-submodules to - # "git clone" to fetch them self.os_cmd( - ("git", "clone", "--recursive", repo_name), + ("git", "clone", repo_name), cwd=self.stm32cube_repo_path, ) branch = self.major_branch()