Questions tagged [git-review]

git-review is a CLI tool for Git / Gerrit that facilitates communication with Gerrit Code Review when using command line.

git-review tool adds a new git review command. It allows to push changes for reviews, download them, rebase to reflect newest modifications in destination branch, regenerate commits' Change-Id in batch and more.

Tool is written in Python. Its documentation and sources are available at github.

43 questions
1
vote
3 answers

Git review is not installing using PIP

C:\Users\Dell>pip install git-review Fatal error in launcher: Unable to create process using '"c:\python39\python.exe" "C:\Python39\Scripts\pip.exe" install git-review': The system cannot find the file specified I am getting this error i have tried…
1
vote
0 answers

git-review patchsets pulling/rebasing latest before pushing

I'm trying to figure out a process by which multiple users are pulling a patchset review, making updates, and pushing but needing to rebase to the latest patchset. So user 1 submits a change and now has a WIP gerrit review. -> patchset 1 So user 2…
Chris
  • 21
  • 5
1
vote
1 answer

Added files lost after `git review`?

I am using git-review with Gerrit for code review. I just came across a pretty serious problem when using this tool: I lost my changes. Here is what I did: added files with git add forgot to git commit executed git review --reviewers…
Danijel
  • 8,198
  • 18
  • 69
  • 133
1
vote
1 answer

Is it possible to review an old commit (ie. already merged commit)?

I had an audience member ask if Gerrit will allow you to review a commit after the fact. This would allow their current project to keep moving forward while their larger and older team could continue to learn Gerrit usage along the way. This way,…
Joey
  • 153
  • 1
  • 8
1
vote
2 answers

Is there a way to auto-rebase before updating a gerrit review?

I always want to have a review on top of the newest master which means that when I update the gerrit review I have to run two commands: git rebase origin/master && git review Is there a way to convince gerrit (review) to do it by itself?
sorin
  • 161,544
  • 178
  • 535
  • 806
1
vote
1 answer

How to split a huge code to submit several patchsets in gerrit

I already ask a question but I have not found the suitable answer yet. How to a huge code to small patches in Gerrit For example, my code has several python file: p1.py, p2.py,..., p5.py. Now I want to group (p1.py and p2.py) in one patchset and…
1
vote
1 answer

How to push for Gerrit review via Git Extension?

Is there a way to push for gerrit review via Git-Extension ? instead of using this command in gitbash git push origin HEAD:refs/for/newFeature
Sachith
  • 191
  • 1
  • 7
  • 15
1
vote
1 answer

git review is failing to push my changes

I am new to git. And as practice, i am working on 2 braches say program_1, program_2. git branch program_1 ls temp git branch program_2 # (create program_2 branch) git checkout program_2 git merge program_1 program_2 # (as i need temp folder in…
Kumari
  • 11
  • 1
1
vote
1 answer

Error while submitting code to gerrit using git-review on windows

I get an error when I try to submit my code to gerrit using gitbash on windows. The error is as below: $ git review You are about to submit multiple commits. This is expected if you are submitting a commit that is dependent on one or more…
Jagori
  • 229
  • 1
  • 3
  • 11
1
vote
1 answer

git review fails w/ "Please make sure you have the correct access rights and the repository exists"

We've just setup gerrit in house. Some projects work, some don't. The ones that don't work fail like this: git review -v 2014-02-26 11:54:57.029764 Running: git log --color=never --oneline HEAD^1..HEAD 2014-02-26 11:54:57.032894 Running: git…
Eric
  • 51
  • 1
  • 6
1
vote
1 answer

git error - rebase -i remotes/gerrit/master

https://review.openstack.org/#/c/64401/ Above is the commit I'm trying to amend git commit -a --amend But when I do git review -v It gives me Running: git log --color=never --oneline HEAD^1..HEAD Running: git remote Running: git branch -a…
Mzq
  • 1,796
  • 4
  • 30
  • 65
1
vote
2 answers

Why my branch is ahead of origin/master after git review?

After having my changes submited to gerrit and accepted by a reviewer, git status complains that I'm ahead of origin/master. Full story: I've cloned my repo from ssh://luis@somewhere:10022/project.git Because git review -s was complaining about a…
Luis
  • 859
  • 2
  • 9
  • 20
1
vote
2 answers

How do I fix "StrictVersion instance has no attribute 'version'" in git review

I get: Traceback (most recent call last): File "/usr/local/bin/git-review", line 863, in main() File "/usr/local/bin/git-review", line 796, in main needs_update = latest_is_newer() File "/usr/local/bin/git-review", line 147,…
Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539
0
votes
1 answer

How can I see commits that i upload?

I did some changes in my code and after that i did git-review. The changes were on the branch b1 and I created only one commit for these changes. And the changes still unmereged. After some-days, I deleted this repo from my workspace, and i cloned…
0
votes
2 answers

remote rejected error in submitting patchset to gerrit via git review

I'm struggling to push changes to Gerrit by git review command. Till now, I've performed the following steps: Installed a Gitblit server on my local pc as per official documentation. Installed Gerrit as per this tutorial. Now, to push the changes…
Rohit Lal
  • 2,791
  • 1
  • 20
  • 36