Compare commits

...

2 commits

Author SHA1 Message Date
Rodrigo Chacon
01aa47e1e3
Merge e463b2c101 into 08c6903cd8 2025-08-11 15:01:58 +02:00
Rodrigo Chacon
e463b2c101
fix fetch-tags when fetch-depth > 0 2025-03-07 14:05:11 -03:00
2 changed files with 3 additions and 0 deletions

View file

@ -248,6 +248,7 @@ describe('Test fetchDepth and fetchTags options', () => {
'-c',
'protocol.version=2',
'fetch',
'--tags',
'--prune',
'--no-recurse-submodules',
'--filter=filterValue',

View file

@ -263,6 +263,8 @@ class GitCommandManager {
const args = ['-c', 'protocol.version=2', 'fetch']
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
args.push('--no-tags')
} else {
args.push('--tags')
}
args.push('--prune', '--no-recurse-submodules')