mirror of
https://github.com/actions/checkout.git
synced 2025-07-06 08:12:53 +00:00
Allow configuration of fetch.parallel (#2)
This commit is contained in:
parent
edc3278d02
commit
4475b1ceed
8 changed files with 63 additions and 13 deletions
|
@ -153,6 +153,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
|
||||
|
@ -232,7 +233,11 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
|
||||
// Checkout submodules
|
||||
core.startGroup('Fetching submodules')
|
||||
await git.config('submodule.fetchJobs', settings.submodulesFetchJobs)
|
||||
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