1
0
mirror of https://github.com/actions/checkout.git synced 2025-04-02 18:40:10 +08:00

Merge e463b2c101b8e47cf5d044abd6062682bd53d355 into 85e6279cec87321a52edac9c87bce653a07cf6c2

This commit is contained in:
Rodrigo Chacon 2025-03-07 17:06:56 +00:00 committed by GitHub
commit 5ef1a32291
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

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

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