Compare commits

...

2 Commits

Author SHA1 Message Date
Shia
f1ce9c9e0d
Merge f329befabb into 6b42224f41 2024-10-04 11:50:29 -04:00
Shia
f329befabb Pass showProgress to fetchOptions 2024-01-08 14:55:58 +09:00
3 changed files with 9 additions and 5 deletions

4
dist/index.js vendored
View File

@ -1271,7 +1271,9 @@ function getSource(settings) {
}
// Fetch
core.startGroup('Fetching the repository');
const fetchOptions = {};
const fetchOptions = {
showProgress: settings.showProgress
};
if (settings.filter) {
fetchOptions.filter = settings.filter;
}

View File

@ -37,7 +37,7 @@ export interface IGitCommandManager {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
showProgress: boolean
}
): Promise<void>
getDefaultBranch(repositoryUrl: string): Promise<string>
@ -257,7 +257,7 @@ class GitCommandManager {
filter?: string
fetchDepth?: number
fetchTags?: boolean
showProgress?: boolean
showProgress: boolean
}
): Promise<void> {
const args = ['-c', 'protocol.version=2', 'fetch']

View File

@ -160,8 +160,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