Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkout small files only #663

Open
pcgeek86 opened this issue Dec 28, 2021 · 2 comments
Open

Checkout small files only #663

pcgeek86 opened this issue Dec 28, 2021 · 2 comments

Comments

@pcgeek86
Copy link

I have some large files in my repository that are slowing down the checkout process. To work around this locally, I can use the following command:

git clone --no-checkout --filter=blob:limit=1m

However, I cannot find any ways to pass in these additional options to the checkout action.

Any ideas how to skip large files with this checkout action?

@jakub-g
Copy link

jakub-g commented Feb 15, 2023

Note GitLab supports GIT_FETCH_EXTRA_FLAGS which can be used for that purpose:

Similar feature would be useful here as well.

@flying-sheep
Copy link

As a hack, I assume one could do the following:

# sparse checkout to set the blob:none filter, but include all files
sparse-checkout: '/*/'
# allow interacting with the Git history
fetch-depth: 0

That way, we get a clone with intact history but no old blobs being downloaded.

A real fix is in #1396

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants