mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 10:08:37 +08:00 
			
		
		
		
	Set config as global
This commit is contained in:
		
							parent
							
								
									6c8fae3820
								
							
						
					
					
						commit
						d5afbb0698
					
				|  | @ -153,7 +153,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> { | |||
| 
 | ||||
|     // Fetch
 | ||||
|     core.startGroup('Fetching the repository') | ||||
|     await git.config('fetch.parallel', settings.fetchParallel.toString()) | ||||
|     await git.config('fetch.parallel', settings.fetchParallel.toString(), true) | ||||
|     const fetchOptions: { | ||||
|       filter?: string | ||||
|       fetchDepth?: number | ||||
|  | @ -235,7 +235,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> { | |||
|       core.startGroup('Fetching submodules') | ||||
|       await git.config( | ||||
|         'submodule.fetchJobs', | ||||
|         settings.submodulesFetchJobs.toString() | ||||
|         settings.submodulesFetchJobs.toString(), | ||||
|         true | ||||
|       ) | ||||
|       await git.submoduleSync(settings.nestedSubmodules) | ||||
|       await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Gonzalo Peci
						Gonzalo Peci