From 3c54913a795813ead9dd8a50f22a846ad10ee415 Mon Sep 17 00:00:00 2001 From: Pratik Raj Date: Thu, 28 May 2020 11:06:41 +0530 Subject: 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 --- sdc-os-chef/scripts/k8s/build_nsenter_exec.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sdc-os-chef/scripts') 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 -- cgit 1.2.3-korg