1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-14 16:53:47 +08:00
This commit is contained in:
Rodrigo Chacon
2025-12-04 14:30:06 -05:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -248,6 +248,7 @@ describe('Test fetchDepth and fetchTags options', () => {
'-c',
'protocol.version=2',
'fetch',
'--tags',
'--prune',
'--no-recurse-submodules',
'--filter=filterValue',

View File

@@ -287,6 +287,8 @@ class GitCommandManager {
const args = ['-c', 'protocol.version=2', 'fetch']
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
args.push('--no-tags')
} else {
args.push('--tags')
}
args.push('--prune', '--no-recurse-submodules')