From 261fa633201e93e0635799092dccf385630c48be Mon Sep 17 00:00:00 2001 From: marius-alex-tache Date: Thu, 14 Nov 2024 16:46:27 +0200 Subject: [PATCH] [script] Add core.symlinks=true to submodules init On Windows, symlinks in submodules are detected as simple text files. Adding this option to the git submodule command correctly detects the symlinks. Signed-off-by: marius-alex-tache --- scripts/checkout_submodules.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/checkout_submodules.py b/scripts/checkout_submodules.py index 4d527148c7d9b0..78b51435eb64c1 100755 --- a/scripts/checkout_submodules.py +++ b/scripts/checkout_submodules.py @@ -113,7 +113,8 @@ def checkout_modules(modules: list, shallow: bool, force: bool, recursive: bool, names = ', '.join([module.name for module in modules]) logging.info(f'Checking out: {names}') - cmd = ['git', '-C', CHIP_ROOT, 'submodule', '--quiet', 'update', '--init'] + cmd = ['git', '-c', 'core.symlinks=true', '-C', CHIP_ROOT] + cmd += ['submodule', '--quiet', 'update', '--init'] cmd += ['--depth', '1'] if shallow else [] cmd += ['--force'] if force else [] cmd += ['--recursive'] if recursive else []