summaryrefslogtreecommitdiffstats
path: root/deliveries
diff options
context:
space:
mode:
authorPratik Raj <rajpratik71@gmail.com>2020-05-28 11:06:35 +0530
committerPratik Raj <rajpratik71@gmail.com>2020-05-28 12:25:17 +0530
commitaeca0e4c909da162b6d4de49a3cc18f6c8487b0b (patch)
tree79a2ed00057c6ff93609acb17820509dbd8bd64b /deliveries
parente276ad30dc38f55e06877df8fd0d3372534c8f47 (diff)
Issue-ID: PORTAL-913 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 . Respective issue is created at https://jira.onap.org/browse/PORTAL-913 More detail can be found at blog https://www.atlassian.com/git/tutorials/big-repositories Signed-off-by: Pratik Raj <rajpratik71@gmail.com> Change-Id: I79c7dfb928115ac438738b9bda1017dd6549560f
Diffstat (limited to 'deliveries')
-rw-r--r--deliveries/local-dev-host-clone.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/deliveries/local-dev-host-clone.sh b/deliveries/local-dev-host-clone.sh
index 1d7ae42b..43153d38 100644
--- a/deliveries/local-dev-host-clone.sh
+++ b/deliveries/local-dev-host-clone.sh
@@ -2,6 +2,6 @@
# Sets up a new build area for Portal projects on on a dev/test host such as vm-ep-dev3
USER=org.UserId-goes-here
-git clone https://${USER}@gerrit.onap.org/r/a/portal
+git clone --depth 1 https://${USER}@gerrit.onap.org/r/a/portal
cd lf_portal
-git clone https://${USER}@gerrit.onap.org/r/a/portal/sdk
+git clone --depth 1 https://${USER}@gerrit.onap.org/r/a/portal/sdk