1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-12-06 12:00:38 +00:00
This commit is contained in:
Steven Van Ingelgem 2025-12-01 23:53:26 -05:00 committed by GitHub
commit 9ab67b0d43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 248 additions and 5 deletions

4
dist/index.js vendored
View file

@ -831,8 +831,8 @@ class GitCommandManager {
fetch(refSpec, options) {
return __awaiter(this, void 0, void 0, function* () {
const args = ['-c', 'protocol.version=2', 'fetch'];
if (!refSpec.some(x => x === refHelper.tagsRefSpec) && !options.fetchTags) {
args.push('--no-tags');
if (!refSpec.some(x => x === refHelper.tagsRefSpec)) {
args.push(options.fetchTags ? '--tags' : '--no-tags');
}
args.push('--prune', '--no-recurse-submodules');
if (options.showProgress) {