mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Parallelize with xargs
This commit is contained in:
parent
fa470b16e5
commit
fe397a3110
8
contrib/update-submodules.sh
vendored
8
contrib/update-submodules.sh
vendored
@ -1,11 +1,9 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
WORKDIR=$(dirname "$0")
|
GITDIR=$(git rev-parse --show-toplevel)
|
||||||
WORKDIR=$(readlink -f "${WORKDIR}")
|
|
||||||
|
|
||||||
"$WORKDIR/sparse-checkout/setup-sparse-checkout.sh"
|
$GITDIR/contrib/sparse-checkout/setup-sparse-checkout.sh
|
||||||
git submodule init
|
git submodule init
|
||||||
git submodule sync
|
git submodule sync
|
||||||
git submodule update --depth=1 --jobs 16
|
git config --file $GITDIR/.gitmodules --get-regexp .*path | sed 's/[^ ]* //' | xargs -I _ --max-procs 64 git submodule update --depth=1 --single-branch _
|
||||||
|
Loading…
Reference in New Issue
Block a user