Gerrit

From OMAPpedia

Revision as of 19:18, 27 January 2012 by Nmenon (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

[edit] Setting up your Account with Gerrit:

[~/.ssh]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/tom/.ssh/id_dsa): <enter>
Enter passphrase (empty for no passphrase): <enter>
Enter same passphrase again: <enter>
Your identification has been saved in /home/tom/.ssh/id_dsa.
Your public key has been saved in /home/tom/.ssh/id_dsa.pub.
The key fingerprint is:50:43:77:c6:97:af:61:82:dc:ea:9b:6b:67:d4:1b:61 tom@volcano

[edit] SSH Proxy Setup:

Host review.omapzoom.org
port 29418
proxycommand <path to corkscrew>/corkscrew <proxy name> 80 %h %p
Host review.source.android.com
port 29418
proxycommand <path to corkscrew>/corkscrew <proxy name> 80 %h %p
Note: Write <proxy name> without 'http://'

[edit] Testing the Connection:

ssh -p 29418 <SSH Username>@review.omapzoom.org
gerrit: no shell availableConnection to review.omapzoom.org closed.

you are good to go :)

[edit] Commit Patches

curl http://review.omapzoom.org/tools/hooks/commit-msg > .git/hooks/commit-msg
curl http://review.omapzoom.org/tools/hooks/commit-msg > .git/hooks/applypatch-msg
chmod a+x .git/hooks/commit-msg .git/hooks/applypatch-msg
git add <files to add>
git commit -s

OR

git am <patch>

[edit] Pushing changes

git push ssh://<gerrit_id>@review.omapzoom.org:29418/<git_directory> HEAD:refs/for/<git location>
e.g.
git push ssh://user.id@review.omapzoom.org:29418/device/ti/pandaboard HEAD:refs/for/gingerbread

[edit] Adding reviewers

visit review.omapzoom.org

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox