1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-23 17:43:52 +08:00
This commit is contained in:
Andrei Neculau
2025-07-28 22:58:30 +07:00
committed by GitHub

View File

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