Skip to content

Commit

Permalink
[script] Add core.symlinks=true to submodules init (#36498)
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
marius-alex-tache authored Nov 15, 2024
1 parent b155ce1 commit 4c53f7d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/checkout_submodules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
Expand Down

0 comments on commit 4c53f7d

Please sign in to comment.