1
0
mirror of https://github.com/actions/checkout.git synced 2026-06-20 17:34:08 +08:00
This commit is contained in:
Alessio Izzo
2025-12-02 08:39:13 +01:00
committed by GitHub
3 changed files with 8 additions and 0 deletions

3
dist/index.js vendored
View File

@@ -834,6 +834,9 @@ class GitCommandManager {
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');
if (options.showProgress) {
args.push('--progress');