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

@ -760,7 +760,7 @@ async function setup(testName: string): Promise<void> {
clean: true,
commit: '',
fetchDepth: 1,
fetchJobs: 0,
fetchJobs: -1,
lfs: false,
submodules: false,
nestedSubmodules: false,

View file

@ -75,7 +75,7 @@ describe('input-helper tests', () => {
expect(settings.commit).toBeTruthy()
expect(settings.commit).toBe('1234567890123456789012345678901234567890')
expect(settings.fetchDepth).toBe(1)
expect(settings.fetchJobs).toBe(0)
expect(settings.fetchJobs).toBe(-1)
expect(settings.lfs).toBe(false)
expect(settings.ref).toBe('refs/heads/some-ref')
expect(settings.repositoryName).toBe('some-repo')