Jump to content

DevCamp/Laptop setup/Windows git-review

From Wikimania 2013 • Hong Kong

Install the Python packaging system

In order to install gerrit-review, you must set up distribute, the Python software packaging system.

To do that, open Git Bash (available by Start-> Programs -> Git -> Git Bash) and run this command:

    curl http://python-distribute.org/distribute_setup.py | python

You will see a lot of happy messages print out, and finally you will see a prompt again (which looks like $ sign).

Download git-review

To download git-review, run these commands:

   curl http://pypi.python.org/packages/source/g/git-review/git-review-1.17.tar.gz > git-review.tar.gz
   tar zxvf git-review.tar.gz
   cd git-review-1.17
   python setup.py install

Make sure git-review runs

After all this work, you will want to make sure the program is properly installed. Type this into the prompt:

   git-review

You should see a happy error message, three lines long:

No .gitreview file found in this repository.
We don't know where your gerrit is. Please manually create
a remote named gerrit and try again.

Hooray! It is properly installed.

Return to laptop setup

« Return to laptop setup