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:
Jellyfrog 2026-10-02 01:45:20 +02:00
parent f548e57e54
commit 4fba4c42af
8 changed files with 110 additions and 22 deletions

View file

@ -120,7 +120,8 @@ Please refer to the [release page](https://github.com/actions/checkout/releases/
# Default: true
clean: ''
# Partially clone against a given filter. Overrides sparse-checkout if set.
# Partially clone against a given filter. If sparse-checkout is set and filter is
# not, the filter is `blob:none`. Set to `none` to fetch without a filter.
# Default: null
filter: ''