mirror of
https://github.com/actions/checkout.git
synced 2025-08-23 10:48:01 +03:00
Compare commits
2 commits
89bdd27707
...
a9cd3da71a
Author | SHA1 | Date | |
---|---|---|---|
|
a9cd3da71a | ||
|
0776c3a4db |
1 changed files with 6 additions and 2 deletions
|
@ -261,8 +261,12 @@ class GitCommandManager {
|
|||
}
|
||||
): Promise<void> {
|
||||
const args = ['-c', 'protocol.version=2', 'fetch']
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
|
||||
args.push('--no-tags')
|
||||
if (options.fetchTags) {
|
||||
args.push('--tags')
|
||||
} else {
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
|
||||
args.push('--no-tags')
|
||||
}
|
||||
}
|
||||
|
||||
args.push('--prune', '--no-recurse-submodules')
|
||||
|
|
Loading…
Add table
Reference in a new issue