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
19
votes
5 answers

Gerrit - how to disallow direct push to "master" but allow to other branches

I want to set up configuration described below: Registered user can not push his changes directly to master. He has to push these changes for review: git push origin master - it should be rejected by Gerrit (origin = Gerrit) git push origin…
Tomasz Mielcarz
  • 261
  • 1
  • 3
  • 5
19
votes
6 answers

How to amend review issues in Gerrit when there is a second newer review also

Still trying to learn how to use Gerrit and its process. Steps I did where Push first change1 to gerrit for review to HEAD:refs/for/develop Work on something else on same branch and push change2 to gerrit for review to HEAD:refs/for/develop Both…
Adrian Cornish
  • 23,227
  • 13
  • 61
  • 77
18
votes
7 answers

Gerrit Change has Status:Submitted, Merge Pending, how to solve it?

The Gerrit system is only used by us several people. Once there is a Change A, and its status is: "Submitted, Merge Pending". The change list in the "open" web page. Also I noticed this Change had a dependency on another change B (which status is…
gemfield
  • 3,228
  • 7
  • 27
  • 28
18
votes
3 answers

Gerrit recreating change-ids

I am using gerrit. I used the following command $ cd .git/hooks $ scp -P 29418 demo@localhost:hooks/commit-msg . $ cd ../.. This adds the change-id to my commit message, however if I amend to a commit it creates a NEW change-id. So when I push back…
Frank Sposaro
  • 8,511
  • 4
  • 43
  • 64
18
votes
4 answers

How to configure specific upstream push refspec for Git when used with Gerrit?

I'm setting up Git with Gerrit Code Review and am looking for a way to make the necessary Git commands relatively straightforward for users who might be new to Git. The commands I currently have for starting a new feature branch are essentially…
Greg Hewgill
  • 951,095
  • 183
  • 1,149
  • 1,285
17
votes
6 answers

Gerrit trigger for Jenkins couldn't find any revision to build

I have trouble using Jenkins+Gerrit. Here is what I got so far: Gerrit Trigger configuration in Jenkins seems to be ok: When I push a new changeset, Jenkins build is launched. I used this: Jenkins: settings for Gerrit Trigger problems to also be…
MisterPatate
  • 287
  • 1
  • 2
  • 16
17
votes
4 answers

How to push tag to specific branch in gerrit

I have a branch called v2.0 in gerrit. Now I want to the current stat of this branch as v2.0.1. In my local repository I checked out the branch, then added the tag using git tag v2.0.1 Now I'm trying to push that to gerrit, but I'm not sure how. I…
Frank
  • 64,140
  • 93
  • 237
  • 324
17
votes
2 answers

error: addinfo_cache failed while cherrypicking

I am getting the followinge error while cherry-picking a gerrit...does anyone have info on what this means and why would anyone see it? error: addinfo_cache failed for path 'ROE/NAS/src/abc.c
carte blanche
  • 10,796
  • 14
  • 46
  • 65
16
votes
2 answers

GitHub, Gerrit, Hudson(Jenkins) workflow

I'm just getting started using GitHub, Gerrit, and Hudson(Jenkins) together. And I need some thoughts on workflow. We'd like to use GitHub as our main remote repo. We'd like to use Gerrit primarily for code reviews, but also for build triggers in…
Josh Smith
  • 14,674
  • 18
  • 72
  • 118
16
votes
6 answers

How to cherry pick from branch A to branch B on a system without history?

Suppose I have a new system with no git history and I take a fresh checkout of branch A. Branch A already has a commit C1 which I did yesterday from some other system. Now I want to cherry-pick this commit C1 in branch B. Issue: If I take checkout…
Farrukh Chishti
  • 7,652
  • 10
  • 36
  • 60
16
votes
3 answers

What does "You are in the middle of an am session" mean?

When I run git status, this is what I am seeing: $ git status On branch master Your branch is ahead of 'origin/master' by 1 commit. (use "git push" to publish your local commits) You are in the middle of an am session. (fix conflicts and then…
ozbek
  • 20,955
  • 5
  • 61
  • 84
16
votes
3 answers

Google authentication for Gerrit and Jenkins

Jenkins and Gerrit have both plugins for OpenID 2.0, but this API has been deprecated by Google May 19 2014 (https://developers.google.com/accounts/docs/OpenID) making it impossible for new installation to use and existing installations must migrate…
revau.lt
  • 2,674
  • 2
  • 20
  • 31
16
votes
2 answers

Jenkins Gerrit trigger on all branches except master

I have a build in Jenkins triggered by Gerrit I would like to trigger on all branches except master. What regex should I use for this?
Kara
  • 6,115
  • 16
  • 50
  • 57
16
votes
5 answers

Gerrit Add Reviewers

I have a project in Gerrit and each time I submit a change I manually have to add a group of reviewers to that change. Is there a mechanism that would allow me to specify reviewers that I want to be emailed for each change?
Sriram Venkatesh
  • 593
  • 2
  • 8
  • 22
16
votes
2 answers

Searching Gerrit by Commit Message

Our team uses a standard of prefixing all commit messages with "bz12345:" (where 12345 is replaced by the bug you're working on) and I'd like to be able to search for all commits that have that bug number. I've read…
Jed Anderson
  • 901
  • 1
  • 8
  • 23