--depth 1 does not apply to submodules when cloning with --recursive. This results in deep submodules clones, which is really bad for repositories with many submodules (i.e. esp-idf).
Solution:
Add --shallow-submodules so that --depth also affects submodules.
--depth 1
does not apply to submodules when cloning with--recursive
. This results in deep submodules clones, which is really bad for repositories with many submodules (i.e.esp-idf
).Solution: Add
--shallow-submodules
so that--depth
also affects submodules.