Updated submodule section with new instructions 95/13595/3
authorjsseidel <spence@research.att.com>
Tue, 19 Sep 2017 20:51:26 +0000 (16:51 -0400)
committerRich Bennett <rb2745@att.com>
Wed, 20 Sep 2017 15:12:10 +0000 (15:12 +0000)
After trying the instructions in the submodule section,
I discovered there were a couple of steps missing, namely
replacing origin with gerrit and telling git-review what
the gerrit instances for the submodules are.

Change-Id: Ide084200ebcd84d838dabbf352466ec3ca032409
Issue-Id: DOC-84
Signed-off-by: jsseidel <spence@research.att.com>
docs/guides/onap-developer/how-to-use-docs/update-review.rst

index 033f2f0..7a0cd39 100644 (file)
@@ -90,6 +90,26 @@ submodules. To pull in the latest changes:
 
    git submodule foreach 'git pull'
 
+Next, for every submodule, you'll need to rename 'origin' to 'gerrit':
+
+.. code:: bash
+
+   git submodule foreach 'git remote rename origin gerrit'
+
+Finally, for every submodule, you'll have to tell git-review how to find
+Gerrit. 
+
+.. code:: bash
+
+   cd doc # Make sure we're in the top level doc repo directory
+   git submodule foreach 'REPO=$(echo $path | sed "s/docs\/submodules\///") ; git remote add gerrit ssh://<LFID>@gerrit.onap.org:29418/$REPO'
+   
+Or, if you prefer to do only one at a time:
+
+.. code:: bash
+
+   git remote add gerrit ssh://<LFID>@gerrit.onap.org:29418/repopath/repo.git
+
 Requesting Reviews
 ------------------