mirror of
https://github.com/actions/checkout.git
synced 2026-03-10 09:01:44 +08:00
Compare commits
2 Commits
c8f5fc33e7
...
01aa47e1e3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
01aa47e1e3 | ||
|
|
e463b2c101 |
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user