mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-10-31 21:12:29 +00:00 
			
		
		
		
	fetch tags when fetch-depth > 0. fix #1781
This commit is contained in:
		
							parent
							
								
									cbb722410c
								
							
						
					
					
						commit
						0776c3a4db
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		|  | @ -261,9 +261,13 @@ class GitCommandManager { | |||
|     } | ||||
|   ): Promise<void> { | ||||
|     const args = ['-c', 'protocol.version=2', 'fetch'] | ||||
|     if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) { | ||||
|     if (options.fetchTags) { | ||||
|       args.push('--tags') | ||||
|     } else { | ||||
|       if (!refSpec.some(x => x === refHelper.tagsRefSpec)) { | ||||
|         args.push('--no-tags') | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
|     args.push('--prune', '--no-recurse-submodules') | ||||
|     if (options.showProgress) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue