Fix / simplify the example patch in USAGE.md

The patch given to modify the repo no longer applies cleanly. Fix this
and trim things down by using sed.

Change-Id: Ib203b39b70cba453d0fdcb804e3dc6c9fe5ea589
This commit is contained in:
Paul Bourke
2016-05-18 16:35:31 +01:00
parent 54c40a788c
commit eaaeae8e58

View File

@@ -134,17 +134,9 @@ Now start to develop new feature or fix bugs on master, as usual.
For this example, we are going to change the .gitreview file in order to use a For this example, we are going to change the .gitreview file in order to use a
local Gerrit server. local Gerrit server.
echo "diff --git a/.gitreview b/.gitreview ```bash
index bb7e85c..f98d928 100644 sed -i 's/review\.openstack\.org/gerrit\.my\.org/' .gitreview
--- a/.gitreview ```
+++ b/.gitreview
@@ -1,4 +1,4 @@
[Gerrit]
-host=review.openstack.org
+host=gerrit.my.org
port=29418
-project=openstack-infra/jenkins-job-builder.git
+project=my-projects/jenkins-job-builder.git" | patch -p1
Dont forget to commit and push (after this step, you may want to use git Dont forget to commit and push (after this step, you may want to use git
review as usual) review as usual)