Skip to content

Commit

Permalink
Pass showProgress to fetchOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
riseshia committed Sep 4, 2023
1 parent 3df4ab1 commit 8e6fd99
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,9 @@ function getSource(settings) {
}
// Fetch
core.startGroup('Fetching the repository');
const fetchOptions = {};
const fetchOptions = {
showProgress: settings.showProgress
};
if (settings.sparseCheckout)
fetchOptions.filter = 'blob:none';
if (settings.fetchDepth <= 0) {
Expand Down
4 changes: 3 additions & 1 deletion src/git-source-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,9 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
} = {}
} = {
showProgress: settings.showProgress
}
if (settings.sparseCheckout) fetchOptions.filter = 'blob:none'
if (settings.fetchDepth <= 0) {
// Fetch all branches and tags
Expand Down

0 comments on commit 8e6fd99

Please sign in to comment.