@@ -176,6 +176,7 @@ async def test_clone_repo_with_custom_branch() -> None:
176
176
mock_exec .assert_called_once_with (
177
177
"git" ,
178
178
"clone" ,
179
+ "--recurse-submodules" ,
179
180
"--depth=1" ,
180
181
"--single-branch" ,
181
182
"--branch" ,
@@ -223,7 +224,13 @@ async def test_clone_repo_default_shallow_clone() -> None:
223
224
await clone_repo (clone_config )
224
225
225
226
mock_exec .assert_called_once_with (
226
- "git" , "clone" , "--depth=1" , "--single-branch" , clone_config .url , clone_config .local_path
227
+ "git" ,
228
+ "clone" ,
229
+ "--recurse-submodules" ,
230
+ "--depth=1" ,
231
+ "--single-branch" ,
232
+ clone_config .url ,
233
+ clone_config .local_path ,
227
234
)
228
235
229
236
@@ -246,7 +253,9 @@ async def test_clone_repo_commit_without_branch() -> None:
246
253
await clone_repo (clone_config )
247
254
248
255
assert mock_exec .call_count == 2 # Clone and checkout calls
249
- mock_exec .assert_any_call ("git" , "clone" , "--single-branch" , clone_config .url , clone_config .local_path )
256
+ mock_exec .assert_any_call (
257
+ "git" , "clone" , "--recurse-submodules" , "--single-branch" , clone_config .url , clone_config .local_path
258
+ )
250
259
mock_exec .assert_any_call ("git" , "-C" , clone_config .local_path , "checkout" , clone_config .commit )
251
260
252
261
@@ -356,6 +365,7 @@ async def test_clone_branch_with_slashes(tmp_path):
356
365
mock_exec .assert_called_once_with (
357
366
"git" ,
358
367
"clone" ,
368
+ "--recurse-submodules" ,
359
369
"--depth=1" ,
360
370
"--single-branch" ,
361
371
"--branch" ,
@@ -391,6 +401,7 @@ async def test_clone_repo_creates_parent_directory(tmp_path: Path) -> None:
391
401
mock_exec .assert_called_once_with (
392
402
"git" ,
393
403
"clone" ,
404
+ "--recurse-submodules" ,
394
405
"--depth=1" ,
395
406
"--single-branch" ,
396
407
clone_config .url ,
0 commit comments