All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Macros Pages
Using git repository in paal

Working with gerrit

To configure Gerrit, do the following steps:

  1. Enter Gerrit site and register (using OpenID, e.g. Google Account)

    http://siekiera.mimuw.edu.pl:8082/
    

  2. In settings, open SSH Public Keys tab. Add the public key from the machine you're using for development (cat .ssh/id_rsa.pub) If you don't have one it can be generate using

    ssh-keygen -t rsa
    

    after invoking that command there will be two files in your .ssh directory : id_rsa and id_rsa.pub. Move id_rsa.pub to contain your real email address.

  3. Clone write access version of the repository

    git clone --recursive ssh://<login>@siekiera.mimuw.edu.pl:29418/paal
    

  4. Download commit message hook. It will add a line 'Change-Id: ...' to every commit message. This is required by Gerrit and allows keeping many versions of the same commit.

    scp -p -P 29418 <login>@siekiera.mimuw.edu.pl:hooks/commit-msg <projectDir>/.git/hooks/
    

  5. To send something for review, use a command:

    git push origin HEAD:refs/for/master
    

  6. If you want to update your commit (e.g. reviewers requested some changes) do:

    git commit -a --amend
    git push origin HEAD:refs/for/master
    

  7. When commit is accepted, and you have the privileges to push to master, do:

    git push origin HEAD:master
    

  8. You can find more info about using Gerrit here:
    http://gerrit-documentation.googlecode.com/svn/Documentation/2.6/intro-quick.html
    

General rules

Workflow

Misc

Developers mailing list: http://lists.mimuw.edu.pl/listinfo/paal_developers