mirror of
				https://github.com/actions/checkout.git
				synced 2025-11-04 14:48:39 +08:00 
			
		
		
		
	Allow to fetch tags.
This commit is contained in:
		
							parent
							
								
									09d2acae67
								
							
						
					
					
						commit
						df9ce67227
					
				| 
						 | 
				
			
			@ -261,8 +261,8 @@ class GitCommandManager {
 | 
			
		|||
    }
 | 
			
		||||
  ): Promise<void> {
 | 
			
		||||
    const args = ['-c', 'protocol.version=2', 'fetch']
 | 
			
		||||
    if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
 | 
			
		||||
      args.push('--no-tags')
 | 
			
		||||
    if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
 | 
			
		||||
      args.push(options.fetchTags ? '--tags' : '--no-tags')
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    args.push('--prune', '--no-recurse-submodules')
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user