1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-17 17:24:00 +08:00
This commit is contained in:
Alessio Izzo
2025-08-13 14:45:25 -04:00
committed by GitHub
3 changed files with 8 additions and 0 deletions

View File

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