mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-12 17:32:32 +00:00
19 lines
617 B
Bash
Executable File
19 lines
617 B
Bash
Executable File
#!/bin/sh
|
|
|
|
echo "Using sparse checkout for google-cloud-cpp"
|
|
|
|
FILES_TO_CHECKOUT=$(git rev-parse --git-dir)/info/sparse-checkout
|
|
echo '!/*' > $FILES_TO_CHECKOUT
|
|
echo '/google/cloud/*.cc' >> $FILES_TO_CHECKOUT
|
|
echo '/google/cloud/*.h' >> $FILES_TO_CHECKOUT
|
|
echo '/google/cloud/internal/*' >> $FILES_TO_CHECKOUT
|
|
echo '/google/cloud/grpc_utils/*' >> $FILES_TO_CHECKOUT
|
|
echo '/google/cloud/kms/*' >> $FILES_TO_CHECKOUT
|
|
echo '/cmake/*' >> $FILES_TO_CHECKOUT
|
|
echo '/protos/*' >> $FILES_TO_CHECKOUT
|
|
echo '/external/googleapis' >> $FILES_TO_CHECKOUT
|
|
|
|
git config core.sparsecheckout true
|
|
git checkout $1
|
|
git read-tree -mu HEAD
|