mirror of
https://github.com/actions/checkout.git
synced 2026-11-16 22:45:08 +08:00
Allow filter: none to disable the implicit blob:none for sparse checkout
When sparse-checkout is set and filter is not, checkout fetches with --filter=blob:none. If the sparse patterns keep most of the repository, the following checkout fetches each blob lazily from the promisor remote, which is slower than one full pack. Setting filter to 'none' now fetches without a filter. 'none' is not a valid git filter-spec, so no existing workflow can depend on it. The effective filter is now resolved in input-helper, so git-source-provider has one decision point.
This commit is contained in:
parent
f548e57e54
commit
4fba4c42af
8 changed files with 110 additions and 22 deletions
|
|
@ -60,7 +60,8 @@ inputs:
|
|||
filter:
|
||||
description: >
|
||||
Partially clone against a given filter.
|
||||
Overrides sparse-checkout if set.
|
||||
If sparse-checkout is set and filter is not, the filter is `blob:none`.
|
||||
Set to `none` to fetch without a filter.
|
||||
default: null
|
||||
sparse-checkout:
|
||||
description: >
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue