From: Pratik Raj Date: Thu, 28 May 2020 05:36:41 +0000 (+0530) Subject: Optimization in git clone using --depth X-Git-Tag: 1.7.1~73 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F68%2F108368%2F3;p=sdc.git Optimization in git clone using --depth optimize the git clone using --depth flag in term of size of clone and also in term's of time taken to fetch the files and commit history of whole repository . More detail can be found at blog https://www.atlassian.com/git/tutorials/big-repositories Issue-ID: SDC-3089 Signed-off-by: Pratik Raj Change-Id: Ib806bf0c172bd304abe9a138e2f85fcf14e07675 --- diff --git a/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh b/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh index 7ee1196d98..cf95ab8973 100644 --- a/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh +++ b/sdc-os-chef/scripts/k8s/build_nsenter_exec.sh @@ -9,7 +9,7 @@ docker run --name nsenter -it ubuntu:14.04 bash apt-get update apt-get install git build-essential libncurses5-dev libslang2-dev gettext zlib1g-dev libselinux1-dev debhelper lsb-release pkg-config po-debconf autoconf automake autopoint libtool bison -git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux +git clone --depth 1 git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git util-linux cd util-linux/ ./autogen.sh