mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 17:01:38 +08:00
#1467 fix fetchTags=true do not fetch tags
This commit is contained in:
@@ -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 if (options.fetchTags) {
|
||||
args.push('--tags')
|
||||
}
|
||||
|
||||
args.push('--prune', '--no-recurse-submodules')
|
||||
|
||||
Reference in New Issue
Block a user