mirror of
https://github.com/actions/checkout.git
synced 2024-11-12 11:18:05 +00:00
Merge f329befabb
into 6d193bf280
This commit is contained in:
commit
39e008851e
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -1271,7 +1271,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.filter) {
|
if (settings.filter) {
|
||||||
fetchOptions.filter = settings.filter;
|
fetchOptions.filter = settings.filter;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ export interface IGitCommandManager {
|
|||||||
filter?: string
|
filter?: string
|
||||||
fetchDepth?: number
|
fetchDepth?: number
|
||||||
fetchTags?: boolean
|
fetchTags?: boolean
|
||||||
showProgress?: boolean
|
showProgress: boolean
|
||||||
}
|
}
|
||||||
): Promise<void>
|
): Promise<void>
|
||||||
getDefaultBranch(repositoryUrl: string): Promise<string>
|
getDefaultBranch(repositoryUrl: string): Promise<string>
|
||||||
@ -257,7 +257,7 @@ class GitCommandManager {
|
|||||||
filter?: string
|
filter?: string
|
||||||
fetchDepth?: number
|
fetchDepth?: number
|
||||||
fetchTags?: boolean
|
fetchTags?: boolean
|
||||||
showProgress?: boolean
|
showProgress: boolean
|
||||||
}
|
}
|
||||||
): Promise<void> {
|
): Promise<void> {
|
||||||
const args = ['-c', 'protocol.version=2', 'fetch']
|
const args = ['-c', 'protocol.version=2', 'fetch']
|
||||||
|
@ -160,8 +160,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.filter) {
|
if (settings.filter) {
|
||||||
fetchOptions.filter = settings.filter
|
fetchOptions.filter = settings.filter
|
||||||
|
Loading…
Reference in New Issue
Block a user