mirror of
				https://code.forgejo.org/actions/checkout.git
				synced 2025-11-03 22:29:11 +00:00 
			
		
		
		
	Merge e463b2c101 into 09d2acae67
				
					
				
			This commit is contained in:
		
						commit
						be0aff9a12
					
				
					 2 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -248,6 +248,7 @@ describe('Test fetchDepth and fetchTags options', () => {
 | 
				
			||||||
        '-c',
 | 
					        '-c',
 | 
				
			||||||
        'protocol.version=2',
 | 
					        'protocol.version=2',
 | 
				
			||||||
        'fetch',
 | 
					        'fetch',
 | 
				
			||||||
 | 
					        '--tags',
 | 
				
			||||||
        '--prune',
 | 
					        '--prune',
 | 
				
			||||||
        '--no-recurse-submodules',
 | 
					        '--no-recurse-submodules',
 | 
				
			||||||
        '--filter=filterValue',
 | 
					        '--filter=filterValue',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -263,6 +263,8 @@ class GitCommandManager {
 | 
				
			||||||
    const args = ['-c', 'protocol.version=2', 'fetch']
 | 
					    const args = ['-c', 'protocol.version=2', 'fetch']
 | 
				
			||||||
    if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
 | 
					    if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
 | 
				
			||||||
      args.push('--no-tags')
 | 
					      args.push('--no-tags')
 | 
				
			||||||
 | 
					    } else {
 | 
				
			||||||
 | 
					      args.push('--tags')
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    args.push('--prune', '--no-recurse-submodules')
 | 
					    args.push('--prune', '--no-recurse-submodules')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue