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 []