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 Jan 8, 2024
1 parent b4ffde6 commit f329bef
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion dist/index.js
Expand Up @@ -1243,7 +1243,9 @@ function getSource(settings) {
}
// Fetch
core.startGroup('Fetching the repository');
const fetchOptions = {};
const fetchOptions = {
showProgress: settings.showProgress
};
if (settings.filter) {
fetchOptions.filter = settings.filter;
}
Expand Down
4 changes: 2 additions & 2 deletions src/git-command-manager.ts
Expand Up @@ -34,7 +34,7 @@ export interface IGitCommandManager {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
showProgress: boolean
}
): Promise<void>
getDefaultBranch(repositoryUrl: string): Promise<string>
Expand Down Expand Up @@ -246,7 +246,7 @@ class GitCommandManager {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
showProgress: boolean
}
): Promise<void> {
const args = ['-c', 'protocol.version=2', 'fetch']
Expand Down
6 changes: 4 additions & 2 deletions src/git-source-provider.ts
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.filter) {
fetchOptions.filter = settings.filter
Expand Down

0 comments on commit f329bef

Please sign in to comment.