mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Try to fix invocation from outside
This commit is contained in:
parent
fe397a3110
commit
93d8fc231c
9
contrib/update-submodules.sh
vendored
9
contrib/update-submodules.sh
vendored
@ -1,9 +1,12 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
GITDIR=$(git rev-parse --show-toplevel)
|
||||
SCRIPT_PATH=$(realpath "$0")
|
||||
GIT_DIR=$(dirname "${SCRIPT_PATH}") # <repo>/contrib/
|
||||
GIT_DIR=$(dirname "${GIT_DIR}") # <repo>/
|
||||
cd $GIT_DIR
|
||||
|
||||
$GITDIR/contrib/sparse-checkout/setup-sparse-checkout.sh
|
||||
contrib/sparse-checkout/setup-sparse-checkout.sh
|
||||
git submodule init
|
||||
git submodule sync
|
||||
git config --file $GITDIR/.gitmodules --get-regexp .*path | sed 's/[^ ]* //' | xargs -I _ --max-procs 64 git submodule update --depth=1 --single-branch _
|
||||
git config --file .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