diff options
author | Pratik Raj <rajpratik71@gmail.com> | 2020-05-28 11:06:41 +0530 |
---|---|---|
committer | Sébastien Determe <sebastien.determe@intl.att.com> | 2020-07-29 13:23:41 +0000 |
commit | 3c54913a795813ead9dd8a50f22a846ad10ee415 (patch) | |
tree | cc95e62a7e9e6e438ba0fbefbaa022f786503dcd | |
parent | 04b7ecf58e76a1364c46a9ef8ac59d730d658dcb (diff) |
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
-rw-r--r-- | sdc-os-chef/scripts/k8s/build_nsenter_exec.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |