1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-03-12 04:25:22 +01:00
This commit is contained in:
Andrei Neculau 2025-01-16 23:01:18 +00:00 committed by GitHub
commit 8ff22d95a2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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