diff --git a/dist/index.js b/dist/index.js index ddf2b3d89..003bef5fc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; } diff --git a/src/git-command-manager.ts b/src/git-command-manager.ts index 7752cfa4d..965c94681 100644 --- a/src/git-command-manager.ts +++ b/src/git-command-manager.ts @@ -34,7 +34,7 @@ export interface IGitCommandManager { filter?: string fetchDepth?: number fetchTags?: boolean - showProgress?: boolean + showProgress: boolean } ): Promise getDefaultBranch(repositoryUrl: string): Promise @@ -246,7 +246,7 @@ class GitCommandManager { filter?: string fetchDepth?: number fetchTags?: boolean - showProgress?: boolean + showProgress: boolean } ): Promise { const args = ['-c', 'protocol.version=2', 'fetch'] diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index 5c98e9f73..9691ee774 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise { filter?: string fetchDepth?: number fetchTags?: boolean - showProgress?: boolean - } = {} + showProgress: boolean + } = { + showProgress: settings.showProgress + } if (settings.filter) { fetchOptions.filter = settings.filter