subtree: Replace GitHub remotes with Gerrit
Gerrit is the canonical location for OpenBMC hosted meta-*
repositories, with GitHub being a read-only mirror.
As such update the subtree documentation to refer to the canonical
sources, on the off chance that GitHub replication stops working
or the meta-* mirrors are hosted elsewhere someday.
Change-Id: Id846d01a14874b9fecbb02f9ce7694cd2a73bff9
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/subtree.md b/subtree.md
index 1ffb692..96d645c 100644
--- a/subtree.md
+++ b/subtree.md
@@ -13,7 +13,7 @@
Instead, please follow this workflow:
```
-$ git clone git@github.com:openbmc/openbmc.git
+$ git clone https://gerrit.openbmc-project.xyz/openbmc/openbmc
# Make changes
$ bitbake obmc-phosphor-image # Test out your changes
$ git commit
@@ -46,9 +46,9 @@
### Automation to test the ref
Where $1 is the repo name, and $2 is a ref to a pointer
```
-git clone git@github.com:openbmc/openbmc.git
+git clone https://gerrit.openbmc-project.xyz/openbmc/openbmc
cd openbmc
-git remote add subtree-remote git@github.com:openbmc/$1
+git remote add subtree-remote https://gerrit.openbmc-project.xyz/openbmc/$1
git fetch ssh://openbmc.gerrit/openbmc/$1 refs/changes/$2
git cherry-pick --strategy=subtree FETCH_HEAD
```
@@ -57,9 +57,9 @@
Once +2 is given, this script will run where $1 is the repo name, and $2 is a
full path to subtree from top level
```
-git clone git@github.com:openbmc/openbmc.git
+git clone ssh://<user>@gerrit.openbmc-project.xyz:29418/openbmc/openbmc
cd openbmc
-git remote add subtree-remote git@github.com:openbmc/$1
+git remote add subtree-remote https://gerrit.openbmc-project.xyz/openbmc/$1
git subtree pull --prefix=$2 subtree-remote master
git push