Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

Commit a62cb4f

Browse files
author
Sergii Lutai
committed
improve submodules fetch when cloning repository
1 parent 8fd4f43 commit a62cb4f

File tree

1 file changed

+5
-0
lines changed
  • project/core/sourcecontrol

1 file changed

+5
-0
lines changed

project/core/sourcecontrol/Git.cs

+5
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,10 @@ private RepositoryAction CreateUpateLocalRepository(IIntegrationResult result)
439439

440440
// init submodules
441441
if (FetchSubmodules)
442+
{
442443
GitInitSubmodules(result);
444+
GitUpdateSubmodules(result);
445+
}
443446

444447
// setup some required configuration settings for the local repository
445448
SetupLocalRepository(result);
@@ -813,6 +816,8 @@ private void GitUpdateSubmodules(IIntegrationResult result)
813816
ProcessArgumentBuilder buffer = new ProcessArgumentBuilder();
814817
buffer.AddArgument("submodule");
815818
buffer.AddArgument("update");
819+
buffer.AddArgument("--init");
820+
buffer.AddArgument("--recursive");
816821

817822
// initialize progress information
818823
var bpi = GetBuildProgressInformation(result);

0 commit comments

Comments
 (0)