Issue-ID: OPTFRA-772 optimization in git clone using --depth 73/108373/2
authorPratik Raj <rajpratik71@gmail.com>
Thu, 28 May 2020 05:37:09 +0000 (11:07 +0530)
committerkrishna moorthy <krishna.moorthy6@wipro.com>
Sun, 2 Aug 2020 07:48:51 +0000 (07:48 +0000)
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

docs/sections/installation.rst

index c116b8b..d4b93d6 100644 (file)
@@ -242,7 +242,7 @@ directory:
 
 .. 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)