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

Prevent git clone from fetching blobs #12

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hianhianhian
Copy link

git clone does a fetch after a successful clone, which defeats the purpose of doing --filter=tree:0 as it seems like git will still fetch the file contents from the remote

Adding --no-checkout should effectively prevent this fetch and leave the clone without any blobs, just having the .git directory

I am not 100% sure this is necessary but from testing on my own fork, this seems to do the trick (my fork has other changes to the git clone command to work with our branching structure).

@YuriSizov YuriSizov added the enhancement New feature or request label Aug 2, 2023
@YuriSizov
Copy link
Contributor

I'm not well versed in these intricacies about Git. I think I need to add some CI tests to make sure such changes don't change the output of the command (e.g. the data file is still the same).

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

Successfully merging this pull request may close these issues.

2 participants