Skip to content

Prevent git clone from fetching blobs - #12

Open
hianhianhian wants to merge 2 commits into
godotengine:masterfrom
kure-developers:master
Open

Prevent git clone from fetching blobs#12
hianhianhian wants to merge 2 commits into
godotengine:masterfrom
kure-developers:master

Conversation

@hianhianhian

Copy link
Copy Markdown

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
Copy Markdown
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