Only clean submodules when clean is set to true

pull/628/head
Laura Bailey 3 years ago
parent 30cd0465ca
commit dde2556f7a

@ -177,8 +177,11 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
core.endGroup() core.endGroup()
// Clean existing submodules // Clean existing submodules
if (settings.clean)
{
await git.submoduleReset(settings.nestedSubmodules) await git.submoduleReset(settings.nestedSubmodules)
await git.submoduleClean(settings.nestedSubmodules) await git.submoduleClean(settings.nestedSubmodules)
}
// Checkout submodules // Checkout submodules
core.startGroup('Fetching submodules') core.startGroup('Fetching submodules')

Loading…
Cancel
Save