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
# 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
::
- git clone "https://gerrit.onap.org/r/portal"
+ git clone --depth 1 "https://gerrit.onap.org/r/portal"
Building
-----------------
::
- git clone http://gerrit.onap.org/r/portal/sdk
+ git clone --depth 1 http://gerrit.onap.org/r/portal/sdk
Building the base
-----------------