From 653d19370c89ce7fa7c6a2b04c57b59ca965596b Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Fri, 15 Mar 2019 01:33:47 +0000 Subject: [PATCH] [DOCKER] Fix git clone failure. (#2816) git clone --branch=xxx won't take a hash, switch from the hash to the tag that represents that hash. --- docker/install/ubuntu_install_sgx.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker/install/ubuntu_install_sgx.sh b/docker/install/ubuntu_install_sgx.sh index d2958e5d0893..45f6e392dbd7 100755 --- a/docker/install/ubuntu_install_sgx.sh +++ b/docker/install/ubuntu_install_sgx.sh @@ -19,8 +19,7 @@ make -j4 sdk && make -j4 sdk_install_pkg ./linux/installer/bin/sgx_linux_x64_sdk*.bin --prefix /opt cd - -tag=6098af # v1.0.5 -git clone --branch=$tag --depth=1 https://github.com/baidu/rust-sgx-sdk.git /opt/rust-sgx-sdk +git clone --branch=v1.0.5 --depth=1 https://github.com/baidu/rust-sgx-sdk.git /opt/rust-sgx-sdk cd /opt/rust-sgx-sdk curl -s -S -L 'https://gist.githubusercontent.com/nhynes/37164039c5d3f33aa4f123e4ba720036/raw/b0de575fe937231799930764e76c664b92975163/rust-sgx-sdk.diff' | git apply cd -