mirror of
https://github.com/actions/checkout.git
synced 2025-03-13 08:58:41 +03:00
Merge 0776c3a4db5cbba169d8b780bdecb4d7a295a52d into 85e6279cec87321a52edac9c87bce653a07cf6c2
This commit is contained in:
commit
8ff22d95a2
@ -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…
x
Reference in New Issue
Block a user