mirror of
https://github.com/actions/checkout.git
synced 2026-03-15 10:43:28 +08:00
rename iterativeSubmoduleUpdate to recursiveSubmoduleUpdate
This commit is contained in:
parent
20f49bc375
commit
043bdbc4cc
@ -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,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user