mirror of
https://gitea.com/actions/checkout.git
synced 2025-04-22 00:35:39 +08:00
Merge f329befabb11970a45e54da58fbcfbe0bc4752f2 into b80ff79f1755d06ba70441c368a6fe801f5f3a62
This commit is contained in:
commit
c1b89c43bc
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -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;
|
||||
}
|
||||
|
@ -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']
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user