Ask Your Question
2

How to use gerrit over https

asked 2015-07-15 20:54:48 -0500

xiangfeiz gravatar image

updated 2015-08-20 02:39:50 -0500

The Developer Guide says we can use Gerrit over https [1]. But I always got an error saying not able to connect to ssh://git.openstack.org/<project>.git

[1] http://docs.openstack.org/infra/manua...

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2015-07-15 20:58:57 -0500

xiangfeiz gravatar image

updated 2015-07-16 03:46:58 -0500

It took me a while to get it working so I'd like to share my findings. The root cause is that git-review prior to version 1.25 does not support gerrit over https.

git-review version 1.25.0 was released on Jun 12, 2015. So most of people should not have this problem any more.

The previous version, 1.24, does not support gerrit over https. So I assume people must get git-review from latest source code from master branch or some unofficial build.

To check git-review version, run

git review --version
edit flag offensive delete link more

Comments

I am facing a similar issue. My git-review version is 1.12. How can i update it to resolve this issue?

sanjana gravatar imagesanjana ( 2015-08-19 23:08:15 -0500 )edit

I used pip to upgrade git-review to 1.25.

pip install --upgrade git-review
xiangfeiz gravatar imagexiangfeiz ( 2015-08-20 02:41:39 -0500 )edit
0

answered 2015-08-20 02:13:47 -0500

updated 2015-08-20 03:48:22 -0500

Could you try the following and tell us if this is working for you ? Check that git-review's directory is properly setup in your PATH environment variable...

# OS-installed one
$ which git-review
/usr/bin/git-review
$ git review --version
git-review version 1.23
$ dpkg-query -L git-review | grep 'bin/git-review'
/usr/bin/git-review

$ git clone https://git.openstack.org/cgit/openstack-infra/git-review
$ cd git-review
$ python setup.py install --user
$ export PATH=$HOME/.local/bin:$PATH

# New one from upstream source repository
$ which git-review 
/home/myself/.local/bin/git-review
$ git review --version
git-review version 1.25.0.8.g44707a1
edit flag offensive delete link more

Comments

When i try "which git-review" , i don't get a path. But when i try sudo apt-get install git-review, it says git-review is already the newest version

sanjana gravatar imagesanjana ( 2015-08-20 03:11:32 -0500 )edit

And if you do the remaining ?

vincent-legoll gravatar imagevincent-legoll ( 2015-08-21 02:10:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2015-07-15 20:54:48 -0500

Seen: 209 times

Last updated: Aug 20 '15