mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 13:29:15 +08:00 
			
		
		
		
	.
This commit is contained in:
		
							
								
								
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								dist/index.js
									
									
									
									
										vendored
									
									
								
							@@ -1261,6 +1261,7 @@ function getSource(settings) {
 | 
				
			|||||||
            else {
 | 
					            else {
 | 
				
			||||||
                fetchOptions.fetchDepth = settings.fetchDepth;
 | 
					                fetchOptions.fetchDepth = settings.fetchDepth;
 | 
				
			||||||
                fetchOptions.fetchTags = settings.fetchTags;
 | 
					                fetchOptions.fetchTags = settings.fetchTags;
 | 
				
			||||||
 | 
					                fetchOptions.showProgress = settings.showProgress;
 | 
				
			||||||
                const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
 | 
					                const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
 | 
				
			||||||
                yield git.fetch(refSpec, fetchOptions);
 | 
					                yield git.fetch(refSpec, fetchOptions);
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -177,6 +177,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
 | 
				
			|||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      fetchOptions.fetchDepth = settings.fetchDepth
 | 
					      fetchOptions.fetchDepth = settings.fetchDepth
 | 
				
			||||||
      fetchOptions.fetchTags = settings.fetchTags
 | 
					      fetchOptions.fetchTags = settings.fetchTags
 | 
				
			||||||
 | 
					      fetchOptions.showProgress = settings.showProgress
 | 
				
			||||||
      const refSpec = refHelper.getRefSpec(settings.ref, settings.commit)
 | 
					      const refSpec = refHelper.getRefSpec(settings.ref, settings.commit)
 | 
				
			||||||
      await git.fetch(refSpec, fetchOptions)
 | 
					      await git.fetch(refSpec, fetchOptions)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user