aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh')
-rwxr-xr-xtools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh b/tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh
index 62e41755ec..9db7aae9eb 100755
--- a/tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh
+++ b/tools/dockerfile/grpc_check_generated_pb_files/check_pb_files.sh
@@ -31,7 +31,11 @@
set -e
mkdir -p /var/local/git
-git clone --recursive /var/local/jenkins/grpc /var/local/git/grpc
+git clone /var/local/jenkins/grpc /var/local/git/grpc
+# clone gRPC submodules, use data from locally cloned submodules where possible
+(cd /var/local/jenkins/grpc/ && git submodule foreach 'cd /var/local/git/grpc \
+&& git submodule update --init --reference /var/local/jenkins/grpc/${name} \
+${name}')
cd /var/local/git/grpc