Merge 0776c3a4db5cbba169d8b780bdecb4d7a295a52d into 09d2acae674a48949e3602304ab46fd20ae0c42f

This commit is contained in:
Andrei Neculau 2025-06-09 00:41:38 +01:00 committed by GitHub
commit 2cf2f7e1a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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')