Pass showProgress to fetchOptions
This commit is contained in:
parent
3df4ab11eb
commit
0a9f64db47
|
@ -1243,7 +1243,9 @@ function getSource(settings) {
|
||||||
}
|
}
|
||||||
// Fetch
|
// Fetch
|
||||||
core.startGroup('Fetching the repository');
|
core.startGroup('Fetching the repository');
|
||||||
const fetchOptions = {};
|
const fetchOptions = {
|
||||||
|
showProgress: settings.showProgress
|
||||||
|
};
|
||||||
if (settings.sparseCheckout)
|
if (settings.sparseCheckout)
|
||||||
fetchOptions.filter = 'blob:none';
|
fetchOptions.filter = 'blob:none';
|
||||||
if (settings.fetchDepth <= 0) {
|
if (settings.fetchDepth <= 0) {
|
||||||
|
|
|
@ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||||
filter?: string
|
filter?: string
|
||||||
fetchDepth?: number
|
fetchDepth?: number
|
||||||
fetchTags?: boolean
|
fetchTags?: boolean
|
||||||
showProgress?: boolean
|
showProgress: boolean
|
||||||
} = {}
|
} = {
|
||||||
|
showProgress: settings.showProgress
|
||||||
|
}
|
||||||
if (settings.sparseCheckout) fetchOptions.filter = 'blob:none'
|
if (settings.sparseCheckout) fetchOptions.filter = 'blob:none'
|
||||||
if (settings.fetchDepth <= 0) {
|
if (settings.fetchDepth <= 0) {
|
||||||
// Fetch all branches and tags
|
// Fetch all branches and tags
|
||||||
|
|
Loading…
Reference in New Issue