All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH docs v2] Add Gerrit server info to contributing doc
@ 2016-06-21 20:40 OpenBMC Patches
  2016-06-21 20:40 ` OpenBMC Patches
  0 siblings, 1 reply; 2+ messages in thread
From: OpenBMC Patches @ 2016-06-21 20:40 UTC (permalink / raw)
  To: openbmc; +Cc: Adriana Kobylak

Add steps to setup and push changes to the openbmc gerrit server.

Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/openbmc/docs/30)
<!-- Reviewable:end -->


https://github.com/openbmc/docs/pull/30

Adriana Kobylak (1):
  Add Gerrit server info to contributing doc

 contributing.md | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

-- 
2.9.0

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH docs v2] Add Gerrit server info to contributing doc
  2016-06-21 20:40 [PATCH docs v2] Add Gerrit server info to contributing doc OpenBMC Patches
@ 2016-06-21 20:40 ` OpenBMC Patches
  0 siblings, 0 replies; 2+ messages in thread
From: OpenBMC Patches @ 2016-06-21 20:40 UTC (permalink / raw)
  To: openbmc; +Cc: Adriana Kobylak

From: Adriana Kobylak <anoo@us.ibm.com>

Add steps to setup and push changes to the openbmc gerrit server.

Signed-off-by: Adriana Kobylak <anoo@us.ibm.com>
---
 contributing.md | 34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

diff --git a/contributing.md b/contributing.md
index db485a0..3acd85e 100644
--- a/contributing.md
+++ b/contributing.md
@@ -84,6 +84,40 @@ The guidelines in the Linux kernel are very useful:
 
 Your contribution will generally need to be reviewed before being accepted.
 
+
+Submitting changes via Gerrit server
+------------------------------------
+
+The openbmc gerrit server is https://gerrit.openbmc-project.xyz/#/q/status:open
+
+You can login with your github credentials. Most repositories are supported by
+the Gerrit server, the current list can be found under Projects -> List:
+https://gerrit.openbmc-project.xyz/#/admin/projects/
+
+If you're going to be working with gerrit often, it's useful to create an SSH
+host block in ~/.ssh/config. Ex:
+```
+Host openbmc.gerrit
+        Hostname gerrit.openbmc-project.xyz
+        Port 29418
+        User your_github_id
+```
+
+From your openbmc git repository, add a remote to the gerrit server, where
+<openbmc_repo> is the current git repository you're working on, such as
+phosphor-rest-server:
+`remote add gerrit ssh://your_github_id@openbmc.gerrit/openbmc/openbmc_repo`
+
+Obtain the git hook commit-msg to automatically add a Change-Id to the commit
+message, which is needed by Gerrit:
+`gitdir=$(git rev-parse --git-dir)`
+`scp -p -P 29418 your_github_id@gerrit.openbmc-project.xyz:hooks/commit-msg ${gitdir}/hooks`
+
+To submit a change set, push to the gerrit server, where <gerrit> is the name
+of the remote added with the remote add command:
+`git push gerrit HEAD:refs/for/master`
+
+
 Avoid references to non-public resources
 ----------------------------------------
 
-- 
2.9.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-21 20:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-21 20:40 [PATCH docs v2] Add Gerrit server info to contributing doc OpenBMC Patches
2016-06-21 20:40 ` OpenBMC Patches

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.