0
mirror of https://github.com/actions/checkout.git synced 2025-08-15 02:25:11 +00:00

Merge 0776c3a4db5cbba169d8b780bdecb4d7a295a52d into ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493

This commit is contained in:
Andrei Neculau 2025-08-13 14:44:18 -04:00 committed by GitHub
commit de86f8ea45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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