diff --git a/project/core/sourcecontrol/Git.cs b/project/core/sourcecontrol/Git.cs index c07f0ead0..7682befe0 100644 --- a/project/core/sourcecontrol/Git.cs +++ b/project/core/sourcecontrol/Git.cs @@ -425,7 +425,10 @@ private RepositoryAction CreateUpateLocalRepository(IIntegrationResult result) // init submodules if (FetchSubmodules) + { GitInitSubmodules(result); + GitUpdateSubmodules(result); + } // setup some required configuration settings for the local repository SetupLocalRepository(result); @@ -775,6 +778,8 @@ private void GitUpdateSubmodules(IIntegrationResult result) ProcessArgumentBuilder buffer = new ProcessArgumentBuilder(); buffer.AddArgument("submodule"); buffer.AddArgument("update"); + buffer.AddArgument("--init"); + buffer.AddArgument("--recursive"); // initialize progress information var bpi = GetBuildProgressInformation(result);