https://github.com/rpardini/armbian-git-shallow
Massage large git trees into shallow bundles for easy consumption
https://github.com/rpardini/armbian-git-shallow
Last synced: 9 months ago
JSON representation
Massage large git trees into shallow bundles for easy consumption
- Host: GitHub
- URL: https://github.com/rpardini/armbian-git-shallow
- Owner: rpardini
- Created: 2022-05-23T10:54:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-19T15:04:14.000Z (almost 3 years ago)
- Last Synced: 2025-04-04T12:22:50.531Z (9 months ago)
- Language: Shell
- Size: 26.4 KB
- Stars: 1
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Shallow Linux Kernel `git` trees
## Why
- Full, non-shallow clones of Linux kernel trees are multiple gigabytes in size, and take a lot of time to process.
- Shallow clones are much smaller, but cloning/fetching shallow trees impose a huge load on the git server (eg: `kernel.org`)
- `kernel.org` has [git bundles](https://git-scm.com/docs/git-bundle) available for download over HTTPS/CDN (simple file download).
- in fact, they [recommend their use](https://www.kernel.org/best-way-to-do-linux-clones-for-your-ci.html) and have [instructions](https://www.kernel.org/cloning-linux-from-a-bundle.html)
- So this repo does the heavy lifting, grabbing bundles, updating them from live git servers, and makes them shallow and ready for consumption.
- Produced shallow bundles are around 250mb as of 5.18.
- Produced shallow bundles include all tags for the version involved, including `-rc` tags
- Scheduled runs update the bundles every 24hs, using GitHub actions, including caching.