We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbb7224 commit 0776c3aCopy full SHA for 0776c3a
src/git-command-manager.ts
@@ -261,8 +261,12 @@ class GitCommandManager {
261
}
262
): Promise<void> {
263
const args = ['-c', 'protocol.version=2', 'fetch']
264
- if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
265
- args.push('--no-tags')
+ if (options.fetchTags) {
+ args.push('--tags')
266
+ } else {
267
+ if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
268
+ args.push('--no-tags')
269
+ }
270
271
272
args.push('--prune', '--no-recurse-submodules')
0 commit comments