mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Parallel clone sparse/shallow submodules
(buzzword overload in the title, sorry) Script update-submodules.sh does a sparse and shallow checkout of submodules. It is offered as convenience for developers who want to avoid long checkout times and save disk space. The script is called by a few build jobs in CI to check that it doesn't break. This PR parallelizes the actual checkout which reduces script runtime from 425 sec to 258 sec.
This commit is contained in:
parent
2cf2c6bbd8
commit
fa470b16e5
2
contrib/update-submodules.sh
vendored
2
contrib/update-submodules.sh
vendored
@ -8,4 +8,4 @@ WORKDIR=$(readlink -f "${WORKDIR}")
|
|||||||
"$WORKDIR/sparse-checkout/setup-sparse-checkout.sh"
|
"$WORKDIR/sparse-checkout/setup-sparse-checkout.sh"
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule sync
|
git submodule sync
|
||||||
git submodule update --depth=1
|
git submodule update --depth=1 --jobs 16
|
||||||
|
Loading…
Reference in New Issue
Block a user