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 <rajpratik71@gmail.com>
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 7ee1196..cf95ab8 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 @@
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