1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-05-14 02:19:29 +02:00

#1467 fix fetchTags=true do not fetch tags

This commit is contained in:
Alessio Izzo 2025-04-05 15:43:33 +02:00
parent 85e6279cec
commit de1c608fff
No known key found for this signature in database
GPG key ID: 279178C9DCF70EB3
2 changed files with 5 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')