Gerrit

From OMAPpedia

Revision as of 18:47, 28 April 2011 by Orbarron (Talk | contribs)
Jump to: navigation, search

Contents

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

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://'

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 :)

Commit Patches

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

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

Adding reviewers

visit review.omapzoom.org

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox