|
|
@ -176,6 +176,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|
|
|
await authHelper.configureGlobalAuth()
|
|
|
|
await authHelper.configureGlobalAuth()
|
|
|
|
core.endGroup()
|
|
|
|
core.endGroup()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Clean existing submodules
|
|
|
|
|
|
|
|
await git.submoduleReset(settings.nestedSubmodules)
|
|
|
|
|
|
|
|
await git.submoduleClean(settings.nestedSubmodules)
|
|
|
|
|
|
|
|
|
|
|
|
// Checkout submodules
|
|
|
|
// Checkout submodules
|
|
|
|
core.startGroup('Fetching submodules')
|
|
|
|
core.startGroup('Fetching submodules')
|
|
|
|
await git.submoduleSync(settings.nestedSubmodules)
|
|
|
|
await git.submoduleSync(settings.nestedSubmodules)
|
|
|
@ -183,8 +187,6 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|
|
|
settings.fetchDepth,
|
|
|
|
settings.fetchDepth,
|
|
|
|
settings.nestedSubmodules
|
|
|
|
settings.nestedSubmodules
|
|
|
|
)
|
|
|
|
)
|
|
|
|
await git.submoduleReset(settings.nestedSubmodules)
|
|
|
|
|
|
|
|
await git.submoduleClean(settings.nestedSubmodules)
|
|
|
|
|
|
|
|
await git.submoduleForeach(
|
|
|
|
await git.submoduleForeach(
|
|
|
|
'git config --local gc.auto 0',
|
|
|
|
'git config --local gc.auto 0',
|
|
|
|
settings.nestedSubmodules
|
|
|
|
settings.nestedSubmodules
|
|
|
|