1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2024-11-24 12:39:16 +01:00

Only clean submodules when clean is set to true

This commit is contained in:
Laura Bailey 2022-02-24 13:42:30 +11:00
parent 30cd0465ca
commit dde2556f7a

View file

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