diff options
author | Matt Kwong <mattkwong@google.com> | 2016-09-26 12:05:05 -0700 |
---|---|---|
committer | Matt Kwong <mattkwong@google.com> | 2016-09-28 16:55:15 -0700 |
commit | 5d0f24600ef9b985bef3aada69e2f5847467c53c (patch) | |
tree | 16a8a8445fde16a15e656ae56de365c992dbc321 /tools/dockerfile/interoptest/grpc_interop_python | |
parent | 46c7f574bd4a5298f09fd5d72924b93c355e357e (diff) |
changed method to local clone submodules to using git submodule foreach from the local copy
Diffstat (limited to 'tools/dockerfile/interoptest/grpc_interop_python')
-rwxr-xr-x | tools/dockerfile/interoptest/grpc_interop_python/build_interop.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/dockerfile/interoptest/grpc_interop_python/build_interop.sh b/tools/dockerfile/interoptest/grpc_interop_python/build_interop.sh index e85153f51a..4ffd2a63c3 100755 --- a/tools/dockerfile/interoptest/grpc_interop_python/build_interop.sh +++ b/tools/dockerfile/interoptest/grpc_interop_python/build_interop.sh @@ -33,14 +33,14 @@ set -e mkdir -p /var/local/git 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}') # copy service account keys if available cp -r /var/local/jenkins/service_account $HOME || true cd /var/local/git/grpc -# clone gRPC submodules, use data from locally cloned submodules where possible -git submodule | awk '{ system("git submodule update --init --reference \ -./../../jenkins/grpc/" $2 " " $2) }' - tools/run_tests/run_tests.py -l python -c opt --build_only |