git shallow clone for speeding up large repos #4255
Labels
locked
[bot] locked due to inactivity
stale::closed
[bot] closed after being marked as stale
stale
[bot] marked as stale due to inactivity
I'm trying to speed up build times for pytorch in hopes of gaining a few minutes on CIs.
I'm hoping that I can save time cloning a gigantic repository.
However, git clone and checkout fail for shallow clones.
I feel like git should be able to clone a single branch or tag with the command
however, it seems that the checkout happens after the clone if I specify even as deep as 5000 commits for the shallow clone.
Is there a way to skip making the mirror.
Cloning a specific branch: 18MB
Cloning full tree: 500MB
Would you consider having an opt-out of the "mirror" + "clone the mirror" strategy that is currently implemented for git repos?
xref: mamba-org/boa#172 (comment)
xref: https://github.com/conda/conda-build/blob/master/conda_build/source.py#L236
cc: @rgommers
cc: @wolfv
The text was updated successfully, but these errors were encountered: