mirror of
				https://github.com/actions/checkout.git
				synced 2025-10-31 10:08:37 +08:00 
			
		
		
		
	Pass showProgress to fetchOptions
This commit is contained in:
		
							parent
							
								
									b4ffde65f4
								
							
						
					
					
						commit
						f329befabb
					
				
							
								
								
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							|  | @ -1243,7 +1243,9 @@ function getSource(settings) { | |||
|             } | ||||
|             // Fetch
 | ||||
|             core.startGroup('Fetching the repository'); | ||||
|             const fetchOptions = {}; | ||||
|             const fetchOptions = { | ||||
|                 showProgress: settings.showProgress | ||||
|             }; | ||||
|             if (settings.filter) { | ||||
|                 fetchOptions.filter = settings.filter; | ||||
|             } | ||||
|  |  | |||
|  | @ -34,7 +34,7 @@ export interface IGitCommandManager { | |||
|       filter?: string | ||||
|       fetchDepth?: number | ||||
|       fetchTags?: boolean | ||||
|       showProgress?: boolean | ||||
|       showProgress: boolean | ||||
|     } | ||||
|   ): Promise<void> | ||||
|   getDefaultBranch(repositoryUrl: string): Promise<string> | ||||
|  | @ -246,7 +246,7 @@ class GitCommandManager { | |||
|       filter?: string | ||||
|       fetchDepth?: number | ||||
|       fetchTags?: boolean | ||||
|       showProgress?: boolean | ||||
|       showProgress: boolean | ||||
|     } | ||||
|   ): Promise<void> { | ||||
|     const args = ['-c', 'protocol.version=2', 'fetch'] | ||||
|  |  | |||
|  | @ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> { | |||
|       filter?: string | ||||
|       fetchDepth?: number | ||||
|       fetchTags?: boolean | ||||
|       showProgress?: boolean | ||||
|     } = {} | ||||
|       showProgress: boolean | ||||
|     } = { | ||||
|       showProgress: settings.showProgress | ||||
|     } | ||||
| 
 | ||||
|     if (settings.filter) { | ||||
|       fetchOptions.filter = settings.filter | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Shia
						Shia