Ask Your Question
0

git review is not working

asked 2017-08-15 22:08:17 -0700

thuva4 gravatar image

Hello , I am new comer to the OPNFV community. I am trying to summit first git review but I am getting following error. I have checked with other gerrit [1]/[2] those are working for me. I followed the tutorial[3] in the documentation. How can I solve this problem?

$ git review
   Could not connect to gerrit. 
   Enter your gerrit username: thuva4
   Trying again with ssh://thuva4@gerrit.opnfv.org:29418/releng.git
   <traceback object at 0x7f1f41b9c0e0>
   We don't know where your gerrit is. Please manually create a remote named "gerrit" and try again.
   Could not connect to gerrit at ssh://thuva4@gerrit.opnfv.org:29418/releng.git
   Traceback (most recent call last):
     File "/usr/bin/git-review", line 10, in <module>
       sys.exit(main())
     File "/usr/lib/python2.7/dist-packages/git_review/cmd.py", line 1534, in main
      sys.exit(e.EXIT_CODE)
    AttributeError: 'GitReviewException' object has no attribute 'EXIT_CODE'

[1]. https://gerrit.wikimedia.org/

[2]. https://gerrit-review.googlesource.com/

[3]. https://wiki.opnfv.org/display/parser...

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-08-16 01:33:50 -0700

thuva4 gravatar image

My fault I did't set the git config variable.

git config --global gitreview.remote origin 
git config --global gitreview.username YourUserName
edit flag offensive delete link more

Your Answer

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

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2017-08-15 22:08:17 -0700

Seen: 12 times

Last updated: Aug 16