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 5, 2023
1 parent 3df4ab1 commit 0a9f64d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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
6 changes: 4 additions & 2 deletions src/git-source-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: 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 0a9f64d

Please sign in to comment.