1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-07-13 20:50:45 +00:00

Support fetch-jobs: 0 to use as many jobs as there are processors

The default is now fetch-jobs: -1, which is the new value for
reverting to normal git behavior (provide no --jobs argument).
This commit is contained in:
Frits Talbot 2020-10-10 10:02:44 +02:00
parent ad5dc19390
commit a5c1ce924a
7 changed files with 19 additions and 15 deletions

View file

@ -327,7 +327,7 @@ class GitCommandManager {
args.push('--recursive')
}
if (fetchJobs > 0) {
if (fetchJobs > -1) {
args.push(`--jobs=${fetchJobs}`)
}