Questions tagged [gerrit]

Gerrit is a web based code review and project management for Git based projects.

Gerrit is a web based code review system, facilitating online code reviews for projects using the Git version control system.

Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.

Gerrit is not only a review interface but it's able to manage git repository into is core. To keep an external git repository, it is recommended to use replication plugin. Replication plugin documentation.

Gerrit2 is a complete rewrite of the Gerrit fork, completely changing the implementation from Python on Google App Engine, to Java on a J2EE servlet container and a SQL database.

2033 questions
14
votes
2 answers

Gerrit always rebase before submit patchset to avoid a merge commit

I found that when clicking "Submit Patch Set" in the Gerrit web interface, it'll either simply add a commit to that branch, or create a merge commit if another commit was submitted just before. Example that creates 2 commit: The actual commit and a…
Wernight
  • 36,122
  • 25
  • 118
  • 131
13
votes
1 answer

How to upload a git repo to gerrit?

I installed the gerrit service on a ubuntu server,and my PC as client. I created a git repo on my PC(with msysgit),and the question is :how can I upload the git repo to the Ubuntu server?Should I do some work on Ubuntu server first(i just installed…
gemfield
  • 3,228
  • 7
  • 27
  • 28
13
votes
2 answers

How to solve merge conflict in a approved review in gerrit?

I made a change in gerrit which was code reviewed and after 7 revisions approved. But, now it cannot be merged and trying to rebase in gerrit website is not working due to merge conflict. How can I resolve this merge conflict and merge the same…
Arshak Anj
  • 149
  • 1
  • 2
  • 8
13
votes
7 answers

Git push error: does not match your user account

I executed the following commands: git pull git config user.email git config user.name git commit --amend --reset-author git push HEAD:refs/for/ But I got the following…
LayaCCC
  • 415
  • 1
  • 5
  • 12
13
votes
1 answer

How does the Gerrit server intercept commits. Looking for technical details

I understand that Gerrit receives git commits (using the update hook perhaps), and write them on a fake ref somewhere until the peer review is done, but how exactly does that process work in terms of the technical implementation? And what Git…
Sthe
  • 2,575
  • 2
  • 31
  • 48
13
votes
4 answers

Gerrit: remote rejected (you are not allowed to upload merges) even though I allowed "Push merge commit"

I've configured Gerrit to allow Push Merge Commit on my branch, but I still get the following error when I try to push a merge commit: ! [remote rejected] ANDROID-foo -> ANDROID-foo (you are not allowed to upload merges) I'm running Gerrit…
Heath Borders
  • 30,998
  • 16
  • 147
  • 256
13
votes
6 answers

What environment variables are passed to Jenkins when using the Gerrit Trigger Plugin?

I'm using the Gerrit Trigger Plugin to kick off Jenkins builds, but haven't found a good place where all of the environment variables are documented. Does such documentation exist?
Alan Thompson
  • 29,276
  • 6
  • 41
  • 48
13
votes
1 answer

How does git push work with android's repo tool?

I'm used to using git with a single repository. However, I've lately been dabbling with Android development and am trying to wrap my head around repo. I have set up some custom git repos by creating xmls in the .repo/local_manifests directory (I'm…
redbmk
  • 4,687
  • 3
  • 25
  • 49
13
votes
5 answers

Gerrit & Phabricator review

Has anyone done a review between Phabricator and Gerrit? I am looking out for a review tool and want to settle on one based on: Ease of use Comprehensiveness in features Activity by the community and adoption Edit: I use Git
Quintin Par
  • 15,862
  • 27
  • 93
  • 146
12
votes
3 answers

How to merge commit in Gerrit Code Review

I'm newbie to gerrit: http://code.google.com/p/gerrit/ I installed it with git on my local Mac. It's done. I make some test action: register 2 accounts, the first accounts grant the "Administrators" privilege, the second account grant the…
vietstone
  • 8,784
  • 16
  • 52
  • 79
12
votes
3 answers

Is good idea to use gerrit to host the git repository instead of gitolite or gitosis?

Originally I try to use gitosis to manage the git repositories in the company, and later notice gitolite is kind of enhancement of gitosis. And also I heard gerrit could be used for the same purpose, but from the description, gerrit is mainly used…
Larry Cai
  • 55,923
  • 34
  • 110
  • 156
12
votes
2 answers

How to set default remote ref in TortoiseGit?

How can I change default remote ref for TortoiseGit push dialog? It is normally master. I can change it to refs/for/master always when I push from combo or keyboard and it works, but I would like to stay the ref of my choice there. How can I do…
Marcin Szawurski
  • 1,313
  • 12
  • 15
12
votes
3 answers

Obtain the latest refspec on a Gerrit Change

How can I obtain the latest refspec on a gerrit change through a single command. I need the output as "refs/changes/11/1234/4". Is there any git command for the same I do know that ssh commands combined with gerrit query and a bit of scripting can…
Jose
  • 1,333
  • 5
  • 20
  • 38
12
votes
3 answers

How to connect Jira and Gerrit

I am using Gerrit and Jira. I want to connect with gerrit to Jira. When I review the code and comment something it will automatically update the jira comment as well. How to do this?
user2994965
12
votes
5 answers

How to install delete-project plugin in gerrit?

I want to install delete-project plugin to my gerrit server. As per the latest version, I should clone it from google source and use buck build. I cloned it and my buck is also ready. What are the steps to be followed to build the delete project…
Virtual
  • 2,111
  • 5
  • 17
  • 27