1
0
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2025-12-06 03:50:39 +00:00

Merge pull request #1 from actions/test-show-progress

dist/index.js
This commit is contained in:
Kristen T. Tran 2025-12-03 09:17:53 +07:00 committed by GitHub
commit c2a0168ac0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

1
dist/index.js vendored
View file

@ -1534,6 +1534,7 @@ function getSource(settings) {
else { else {
fetchOptions.fetchDepth = settings.fetchDepth; fetchOptions.fetchDepth = settings.fetchDepth;
fetchOptions.fetchTags = settings.fetchTags; fetchOptions.fetchTags = settings.fetchTags;
fetchOptions.showProgress = settings.showProgress;
const refSpec = refHelper.getRefSpec(settings.ref, settings.commit); const refSpec = refHelper.getRefSpec(settings.ref, settings.commit);
yield git.fetch(refSpec, fetchOptions); yield git.fetch(refSpec, fetchOptions);
} }

View file

@ -186,6 +186,7 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
} else { } else {
fetchOptions.fetchDepth = settings.fetchDepth fetchOptions.fetchDepth = settings.fetchDepth
fetchOptions.fetchTags = settings.fetchTags fetchOptions.fetchTags = settings.fetchTags
fetchOptions.showProgress = settings.showProgress
const refSpec = refHelper.getRefSpec(settings.ref, settings.commit) const refSpec = refHelper.getRefSpec(settings.ref, settings.commit)
await git.fetch(refSpec, fetchOptions) await git.fetch(refSpec, fetchOptions)
} }