From bd3ee22c8338d4ec3dc1ed6fcb24524b01742d54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= Date: Mon, 6 Mar 2023 08:58:54 -0500 Subject: [PATCH] build.py: fix run_init hooks must be installed after the module is cloned. Change-Id: Ie09a87befbfd217b6c1ad404bf3a457e6d413065 --- build.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build.py b/build.py index b4a1b09b..6b3559e5 100755 --- a/build.py +++ b/build.py @@ -303,6 +303,9 @@ def run_dependencies(args): def run_init(): + subprocess.run(["git", "submodule", "update", "--init"], + check=True) + hooks_directories = ['.git/hooks/', f'.git/modules/daemon/hooks'] for hooks_dir in hooks_directories: if not os.path.exists(hooks_dir): @@ -311,9 +314,6 @@ def run_init(): execute_script(['./extras/scripts/format.sh --install %(path)s'], {"path": hooks_dir}) - subprocess.run(["git", "submodule", "update", "--recursive", "--init"], - check=True) - def copy_file(src, dest): print(f'Copying: {src} to {dest}')