mirror of
https://github.com/actions/checkout.git
synced 2026-01-13 23:53:06 +08:00
Merge 0776c3a4db5cbba169d8b780bdecb4d7a295a52d into cbb722410c2e876e24abbe8de2cc27693e501dcb
This commit is contained in:
commit
adb370b564
@ -261,9 +261,13 @@ class GitCommandManager {
|
||||
}
|
||||
): Promise<void> {
|
||||
const args = ['-c', 'protocol.version=2', 'fetch']
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
|
||||
if (options.fetchTags) {
|
||||
args.push('--tags')
|
||||
} else {
|
||||
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
|
||||
args.push('--no-tags')
|
||||
}
|
||||
}
|
||||
|
||||
args.push('--prune', '--no-recurse-submodules')
|
||||
if (options.showProgress) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user