Merge f329befabb11970a45e54da58fbcfbe0bc4752f2 into 9a9194f87191a7e9055e3e9b95b8cfb13023bb08

This commit is contained in:
Shia 2024-08-01 15:52:36 +02:00 committed by GitHub
commit 30a67b9d91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 9 additions and 5 deletions

4
dist/index.js vendored
View File

@ -1273,7 +1273,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