Skip to content

Commit caf37ff

Browse files
committed
changes init submodules in stm32 port
1 parent 0d6abe9 commit caf37ff

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

builder/stm32.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,12 @@ def clean():
6969
def submodules():
7070
stm32lib_path = 'lib/micropython/lib/stm32lib'
7171
if not os.path.exists(os.path.join(stm32lib_path, 'CMSIS')):
72-
ret_code, _ = spawn([
73-
'git',
74-
'submodule',
75-
'update',
76-
'--init',
77-
'--',
78-
stm32lib_path
79-
])
80-
72+
ret_code, _ = spawn(
73+
[
74+
['cd', stm32lib_path],
75+
['git', 'submodule', 'update', '--init']
76+
]
77+
)
8178
if ret_code != 0:
8279
sys.exit(ret_code)
8380

0 commit comments

Comments
 (0)