From 37f5ca6d5fa5d81b5c39b28a7c54d6065b9fe94e Mon Sep 17 00:00:00 2001 From: Marcus Shawcroft Date: Tue, 19 Mar 2019 03:20:23 +0000 Subject: [PATCH] [DOCKER] Revert git shallow clone change. (#2841) This patch reverts one of my earlier patches (squashed in #2710) to reduce bandwidth requirements of git clone, in this particular case we are checking out a specific hash rather than a tag or branch name. The --branch option to git clone permits tags or branches but does not permit a specific hash. --- docker/install/ubuntu_install_nnpack.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/install/ubuntu_install_nnpack.sh b/docker/install/ubuntu_install_nnpack.sh index 1cf044a9b257..45e2bcb8eccc 100755 --- a/docker/install/ubuntu_install_nnpack.sh +++ b/docker/install/ubuntu_install_nnpack.sh @@ -7,7 +7,8 @@ set -o pipefail apt-get update && apt-get install -y --no-install-recommends git cmake # TODO: specific tag? -git clone --branch=1e005b0c2 --depth=1 https://github.com/Maratyszcza/NNPACK NNPACK +git clone https://github.com/Maratyszcza/NNPACK NNPACK +(cd NNPACK && git checkout 1e005b0c2) mkdir -p NNPACK/build cd NNPACK/build