rename iterativeSubmoduleUpdate to recursiveSubmoduleUpdate

This commit is contained in:
Michael Wyraz 2026-03-10 08:07:10 +01:00
parent 20f49bc375
commit 043bdbc4cc

View File

@ -49,7 +49,7 @@ export async function setupReferenceCache(
} }
} }
async function iterativeSubmoduleUpdate( async function recursiveSubmoduleUpdate(
git: IGitCommandManager, git: IGitCommandManager,
cacheHelper: GitCacheHelper, cacheHelper: GitCacheHelper,
repositoryPath: string, repositoryPath: string,
@ -171,7 +171,7 @@ async function iterativeSubmoduleUpdate(
// Recursive update inside the submodule // Recursive update inside the submodule
if (nestedSubmodules) { if (nestedSubmodules) {
const subRepoPath = path.join(repositoryPath, info.path) const subRepoPath = path.join(repositoryPath, info.path)
await iterativeSubmoduleUpdate( await recursiveSubmoduleUpdate(
git, git,
cacheHelper, cacheHelper,
subRepoPath, subRepoPath,
@ -465,9 +465,9 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
await git.submoduleSync(settings.nestedSubmodules) await git.submoduleSync(settings.nestedSubmodules)
if (settings.referenceCache) { if (settings.referenceCache) {
core.info('Iterative submodule update using reference cache') core.info('Recursive submodule update using reference cache')
const cacheHelper = new GitCacheHelper(settings.referenceCache) const cacheHelper = new GitCacheHelper(settings.referenceCache)
await iterativeSubmoduleUpdate( await recursiveSubmoduleUpdate(
git, git,
cacheHelper, cacheHelper,
settings.repositoryPath, settings.repositoryPath,