Skip to content

extensions clone --filter=blob:none#10564

Merged
AUTOMATIC1111 merged 2 commits into
devfrom
extensions-clone-depth-1
May 21, 2023
Merged

extensions clone --filter=blob:none#10564
AUTOMATIC1111 merged 2 commits into
devfrom
extensions-clone-depth-1

Conversation

@w-e-w

@w-e-w w-e-w commented May 20, 2023

Copy link
Copy Markdown
Collaborator

make it so it doesn't download entire history of the extension repo
as it's not useful for most end users
and prevent stuff like this from happening
image

a usere who has the need of the entire history can run git pull --unshallow to pull the entire history

@akx

akx commented May 20, 2023

Copy link
Copy Markdown
Collaborator

Another option is --filter=blob:none so Git downloads history but not blob data until it needs to.

@w-e-w

w-e-w commented May 21, 2023

Copy link
Copy Markdown
Collaborator Author

haven't figured out how to set --filter=blob:none usign gitpython

@catboxanon

Copy link
Copy Markdown
Collaborator

filter=['blob:none'] should work. kwargs passed in are meant to mimic the usual commands you would use with git itself.

Co-Authored-By: Aarni Koskela <akx@iki.fi>
Co-Authored-By: catboxanon <122327233+catboxanon@users.noreply.github.com>
@w-e-w

w-e-w commented May 21, 2023

Copy link
Copy Markdown
Collaborator Author

filter=['blob:none'] should work. kwargs passed in are meant to mimic the usual commands you would use with git itself.

thank you
unbelievable it's a list
I was digging around Objects.Blob and getting nowhere

@w-e-w

w-e-w commented May 21, 2023

Copy link
Copy Markdown
Collaborator Author

image
for testing I install the canvas-zoom extension
the old install cloneing the entire repo history will result in a size of 199MB
now with --filter=blob:none the size is 75MB

@w-e-w w-e-w changed the title extensions clone depth=1 extensions clone --filter=blob:none May 21, 2023
@AUTOMATIC1111 AUTOMATIC1111 merged commit 8e9188a into dev May 21, 2023
@w-e-w w-e-w deleted the extensions-clone-depth-1 branch May 23, 2023 05:00
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

Successfully merging this pull request may close these issues.

4 participants