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 with Issue-ID: OPTFRA-772 is created at
https://jira.onap.org/browse/OPTFRA-772
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: I6a2f842886fea1e5626e528c93e90eb7e924f7a2
.. code:: bash
- $ git clone https://gerrit.onap.org/r/optf/has
+ $ git clone --depth 1 https://gerrit.onap.org/r/optf/has
Cloning into 'conductor'...
remote: Counting objects: 2291, done.
remote: Compressing objects: 88% (1918/2179)