5
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-11-07 05:26:55 +00:00

Compare commits

...

2 commits

Author SHA1 Message Date
Sylvain Rabot
6ba5baeb9a
Merge 8a91892889 into ff7abcd0c3 2025-08-19 13:35:45 +08:00
Sylvain Rabot
8a91892889
Disable lfs fetch when using a fetch filter
Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
2024-06-25 16:06:42 +02:00

4
dist/index.js vendored
View file

@ -1304,7 +1304,7 @@ function getSource(settings) {
// Explicit lfs-fetch to avoid slow checkout (fetches one lfs object at a time).
// Explicit lfs fetch will fetch lfs objects in parallel.
// For sparse checkouts, let `checkout` fetch the needed objects lazily.
if (settings.lfs && !settings.sparseCheckout) {
if (settings.lfs && !settings.sparseCheckout && !fetchOptions.filter) {
core.startGroup('Fetching LFS objects');
yield git.lfsFetch(checkoutInfo.startPoint || checkoutInfo.ref);
core.endGroup();
@ -38231,4 +38231,4 @@ module.exports = parseParams
/******/ module.exports = __webpack_exports__;
/******/
/******/ })()
;
;