mirror of
https://github.com/actions/checkout.git
synced 2025-12-09 14:15:22 +00:00
Merge e463b2c101b8e47cf5d044abd6062682bd53d355 into 8e8c483db84b4bee98b60c0593521ed34d9990e8
This commit is contained in:
commit
fb359059f4
@ -248,6 +248,7 @@ describe('Test fetchDepth and fetchTags options', () => {
|
||||
'-c',
|
||||
'protocol.version=2',
|
||||
'fetch',
|
||||
'--tags',
|
||||
'--prune',
|
||||
'--no-recurse-submodules',
|
||||
'--filter=filterValue',
|
||||
|
||||
@ -287,6 +287,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')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user