Check first if you cannot download (in a fashion you can resume at will) the repo Linux as a bundle (and then clone locally from the bundle)
See "Cloning Linux from a bundle"
wget -c https://cdn.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/clone.bundle
"wget -c
", which tells wget
to continue interrupted downloads.
If your connection resets, just rerun the same command while in the same directory, and it will pick up where it left off:
git bundle verify clone.bundle
...
clone.bundle is okay
git clone clone.bundle linux
cd linux
git remote remove origin
git remote add origin https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git pull origin master
Note: since, in the future (2022+), Git will support sha-256 in addition of the legacy sha1, Git 2.36 (Q2 2022) makes sure git bundle verify prints the hash algorithm used.
See commit 5cb2827 (28 Mar 2022) by Ævar Arnfjörð Bjarmason (avar
).
See commit 8ba221e, commit 017303e, commit 831ee25, commit 80f6de4, commit cc91044 (22 Mar 2022) by Derrick Stolee (derrickstolee
).
(Merged by Junio C Hamano -- gitster
-- in commit 3928e90, 04 Apr 2022)
bundle
: output hash information in 'verify'
Signed-off-by: Derrick Stolee
The previous change moved the 'filter' capability to the end of the 'git bundle verify
'(man) output.
Now, add the 'object-format' capability to the output, when it exists.
This change makes 'git bundle verify
' output the hash used in all cases, even if the capability is not in the bundle.
This means that v2 bundles will always output that they use "sha1
".
This might look noisy to some users, but it does simplify the implementation and the test strategy for this feature.
Additional message:
The bundle uses this hash algorithm: sha1
# or
The bundle uses this hash algorithm: sha-256