mirror of
https://github.com/actions/checkout.git
synced 2025-07-06 08:12:53 +00:00
Merge 4475b1ceed
into cd7d8d697e
This commit is contained in:
commit
ff5874f76b
9 changed files with 219 additions and 103 deletions
|
@ -156,6 +156,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
|
||||
// Fetch
|
||||
core.startGroup('Fetching the repository')
|
||||
await git.config('fetch.parallel', settings.fetchParallel.toString(), true)
|
||||
const fetchOptions: {
|
||||
filter?: string
|
||||
fetchDepth?: number
|
||||
|
@ -241,6 +242,11 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
|
||||
// Checkout submodules
|
||||
core.startGroup('Fetching submodules')
|
||||
await git.config(
|
||||
'submodule.fetchJobs',
|
||||
settings.submodulesFetchJobs.toString(),
|
||||
true
|
||||
)
|
||||
await git.submoduleSync(settings.nestedSubmodules)
|
||||
await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules)
|
||||
await git.submoduleForeach(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue