mirror of
https://github.com/actions/checkout.git
synced 2025-12-16 22:49:00 +08:00
Compare commits
2 Commits
62d896bcc4
...
f7d829f115
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7d829f115 | ||
|
|
0776c3a4db |
@ -285,8 +285,12 @@ class GitCommandManager {
|
|||||||
}
|
}
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const args = ['-c', 'protocol.version=2', 'fetch']
|
const args = ['-c', 'protocol.version=2', 'fetch']
|
||||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
|
if (options.fetchTags) {
|
||||||
args.push('--no-tags')
|
args.push('--tags')
|
||||||
|
} else {
|
||||||
|
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
|
||||||
|
args.push('--no-tags')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
args.push('--prune', '--no-recurse-submodules')
|
args.push('--prune', '--no-recurse-submodules')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user