mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-04 06:39:11 +00:00 
			
		
		
		
	Set config as global
This commit is contained in:
		
							parent
							
								
									6c8fae3820
								
							
						
					
					
						commit
						d5afbb0698
					
				
					 2 changed files with 4 additions and 3 deletions
				
			
		| 
						 | 
					@ -153,7 +153,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Fetch
 | 
					    // Fetch
 | 
				
			||||||
    core.startGroup('Fetching the repository')
 | 
					    core.startGroup('Fetching the repository')
 | 
				
			||||||
    await git.config('fetch.parallel', settings.fetchParallel.toString())
 | 
					    await git.config('fetch.parallel', settings.fetchParallel.toString(), true)
 | 
				
			||||||
    const fetchOptions: {
 | 
					    const fetchOptions: {
 | 
				
			||||||
      filter?: string
 | 
					      filter?: string
 | 
				
			||||||
      fetchDepth?: number
 | 
					      fetchDepth?: number
 | 
				
			||||||
| 
						 | 
					@ -235,7 +235,8 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
 | 
				
			||||||
      core.startGroup('Fetching submodules')
 | 
					      core.startGroup('Fetching submodules')
 | 
				
			||||||
      await git.config(
 | 
					      await git.config(
 | 
				
			||||||
        'submodule.fetchJobs',
 | 
					        'submodule.fetchJobs',
 | 
				
			||||||
        settings.submodulesFetchJobs.toString()
 | 
					        settings.submodulesFetchJobs.toString(),
 | 
				
			||||||
 | 
					        true
 | 
				
			||||||
      )
 | 
					      )
 | 
				
			||||||
      await git.submoduleSync(settings.nestedSubmodules)
 | 
					      await git.submoduleSync(settings.nestedSubmodules)
 | 
				
			||||||
      await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules)
 | 
					      await git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -3,7 +3,7 @@ import * as fsHelper from './fs-helper'
 | 
				
			||||||
import * as github from '@actions/github'
 | 
					import * as github from '@actions/github'
 | 
				
			||||||
import * as path from 'path'
 | 
					import * as path from 'path'
 | 
				
			||||||
import * as workflowContextHelper from './workflow-context-helper'
 | 
					import * as workflowContextHelper from './workflow-context-helper'
 | 
				
			||||||
import { IGitSourceSettings } from './git-source-settings'
 | 
					import {IGitSourceSettings} from './git-source-settings'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export async function getInputs(): Promise<IGitSourceSettings> {
 | 
					export async function getInputs(): Promise<IGitSourceSettings> {
 | 
				
			||||||
  const result = ({} as unknown) as IGitSourceSettings
 | 
					  const result = ({} as unknown) as IGitSourceSettings
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue