This commit is contained in:
Andrei Neculau
2025-01-16 23:01:18 +00:00
committed by GitHub

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