mirror of
https://github.com/actions/checkout.git
synced 2026-06-19 18:17:42 +00:00
Merge 0a9f64db47 into 72f2cec99f
This commit is contained in:
commit
bc6195db01
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -1243,7 +1243,9 @@ function getSource(settings) {
|
||||
}
|
||||
// Fetch
|
||||
core.startGroup('Fetching the repository');
|
||||
const fetchOptions = {};
|
||||
const fetchOptions = {
|
||||
showProgress: settings.showProgress
|
||||
};
|
||||
if (settings.sparseCheckout)
|
||||
fetchOptions.filter = 'blob:none';
|
||||
if (settings.fetchDepth <= 0) {
|
||||
|
||||
@ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
||||
filter?: string
|
||||
fetchDepth?: number
|
||||
fetchTags?: boolean
|
||||
showProgress?: boolean
|
||||
} = {}
|
||||
showProgress: boolean
|
||||
} = {
|
||||
showProgress: settings.showProgress
|
||||
}
|
||||
if (settings.sparseCheckout) fetchOptions.filter = 'blob:none'
|
||||
if (settings.fetchDepth <= 0) {
|
||||
// Fetch all branches and tags
|
||||
|
||||
Loading…
Reference in New Issue
Block a user