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

Allow download blob:none from git repo #123

Open
arvanus opened this issue Nov 9, 2022 · 0 comments
Open

Allow download blob:none from git repo #123

arvanus opened this issue Nov 9, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@arvanus
Copy link

arvanus commented Nov 9, 2022

Hello, as you probably have heard before, the download time of Horse repo is quite long. I just tested and found that the repo download size is 127.52 MiB in this moment.

**A solution could be to download the repo with the option --filter=blob:none, this way the download size is less than 1Mb

A little log of my tests:


D:\GitHub>git clone https://github.com/HashLoad/horse.git
Cloning into 'horse'...
remote: Enumerating objects: 2763, done.
remote: Counting objects: 100% (188/188), done.
remote: Compressing objects: 100% (112/112), done.
remote: Total 2763 (delta 100), reused 145 (delta 76), pack-reused 2575Receiving objects: 100% (2763/2763), 127.52 MiB |Receiving o

Resolving deltas: 100% (1796/1796), done.


D:\GitHub>git clone   --filter=blob:none  https://github.com/HashLoad/horse.git horsenoblob
Cloning into 'horsenoblob'...
remote: Enumerating objects: 1596, done.
remote: Counting objects: 100% (131/131), done.
remote: Compressing objects: 100% (82/82), done.
remote: Total 1596 (delta 68), reused 98 (delta 49), pack-reused 1465
Receiving objects: 100% (1596/1596), 300.64 KiB | 1.20 MiB/s, done.
Resolving deltas: 100% (807/807), done.
remote: Enumerating objects: 119, done.
remote: Counting objects: 100% (99/99), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 119 (delta 31), reused 19 (delta 6), pack-reused 20
Resolving deltas:   6% (2/31)
Resolving deltas: 100% (31/31), done.
Updating files: 100% (119/119), done.


du -h --max-dept=0 horse horsedept
130M    horse
1.9M    horsenoblob

More about --filter=blob:none:
https://github.blog/2020-12-21-get-up-to-speed-with-partial-clone-and-shallow-clone/

@viniciussanchez viniciussanchez added the enhancement New feature or request label Nov 17, 2022
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

No branches or pull requests

2 participants