From df9ce672278a097c435006d29bb1c2a057e4e94e Mon Sep 17 00:00:00 2001 From: Steven Van Ingelgem Date: Tue, 10 Jun 2025 08:37:42 +0200 Subject: [PATCH] Allow to fetch tags. --- src/git-command-manager.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 8e42a38..261aedc 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -261,8 +261,8 @@ class GitCommandManager { } ): Promise { const args = ['-c', 'protocol.version=2', 'fetch'] - if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) { - args.push('--no-tags') + if (!refSpec.some(x => x === refHelper.tagsRefSpec)) { + args.push(options.fetchTags ? '--tags' : '--no-tags') } args.push('--prune', '--no-recurse-submodules')