Commit 57ea620
committed
Reduce amount of data downloaded from GitHub in resources/rebuild.sh
Use a tree-less git checkout [1], which reduces the amount of data
downloaded by ~60% (from >3GiB to ~1GiB currently) when cloneing the
upstream amazon linux repository from GitHub.
It will now download some stuff during checkout, but this is
significantly less than a full clone, as we're only checking out a
handful of tags.
We sadly cannot use a `--depth=1` checkout because we need access to all
tags, in chronological order, and for this, we need at least the commit
metadata itself fetched locally (even git ls-remote --tags will not sort
tags without first fetching these).
[1]: https://github.blog/open-source/git/get-up-to-speed-with-partial-clone-and-shallow-clone/
Signed-off-by: Patrick Roy <[email protected]>1 parent 3fb9a2a commit 57ea620
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
| 149 | + | |
149 | 150 | | |
150 | 151 | | |
151 | 152 | | |
| |||
0 commit comments