7 - getting git review to work
Contributing to a large OS project (OpenStack) means to jump through a lot of hoops to get the necessary agreements in place and tools installed.
OpenStack uses Gerrit for code reviews, and recommends to use git-review for easier review workflow.
The installation is explained in the documentation and it could be as easy as:
sudo pip install git-review
However that didn’t work for me - I was stuck with:
~ ⮀ git review
git: 'review' is not a git command. See 'git --help'.
I use homebrew to install local packages, so the probable cause was some wrong path. It turns out, that pip installs the git-review binary in a non PATH path:
~ ⮀ sudo pip install git-review
Downloading/unpacking git-review
Running setup.py egg_info for package git-review
Requirement already satisfied (use --upgrade to upgrade): argparse in /usr/local/lib/python2.7/site-packages (from git-review)
Installing collected packages: git-review
Running setup.py install for git-review
changing mode of /usr/local/share/python/git-review to 755
Successfully installed git-review
all I had to do then, was to link git-review into my usual binary path:
ln -s /usr/local/share/python/git-review /usr/local/bin
and things started to work. More information on gerrit and the workflows to use it can be found here: