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.

1894 questions
0
votes
2 answers

Recover git from a crash

My git server crashed and now now my repos are in an inconsistent state. RUnning git fsck --full shows the following output. error: refs/heads/data-8989 does not point to a valid object! dangling commit…
station
  • 5,659
  • 11
  • 47
  • 83
0
votes
1 answer

Using RestSharp with Gerrit REST API

I want to use RestSharp to issue Api calls to Gerrit but I'm having trouble with authentication. For example there is the curl command which works: curl --digest --user VladDracul:5SAbg1pFWyqsvcs4aB7aGL2lISh8fuOjcoQK9WRGSA…
UrsulRosu
  • 487
  • 1
  • 5
  • 15
0
votes
1 answer

git commit-msg hook not triggering when recursive merge occurs on pull

We are using gerrit CI, which requires a commit-msg hook which adds a Change-ID to each commit message. However, sometimes when pulling we get a recursive merge, this shows up in the reflog like this: 767deb5 HEAD@{0}: pull: Merge made by the…
Inbar Rose
  • 35,719
  • 22
  • 80
  • 120
0
votes
1 answer

Gerrit, How to have an amendment to base cl be reflected in later cl

I made three changelist on top of each other in gerrit CL1 cl2 cl3 so when I look at the git log in cl3 checkouted (via git review -d 3), I see the changes from CL1 and CL2. I was asked to amend CL1 and move some of the changes to C2. After…
AC.
  • 835
  • 1
  • 9
  • 17
0
votes
1 answer

Can Gerrit trigger be configured for maven project

I have set up Gerrit server on SERVER_GERRIT. I have jenkins running on SERVER_JENKINS. I have installed Gerrit trigger on SERVER_JENKINS and done required settings on SERVER_GERRIT for jenkins user. I have configured a MAVEN job to build git repo…
AartiD
  • 1
  • 1
0
votes
1 answer

Gerrit Code Review - Change-Id is not working if I am using sublime-text for commit

Just realize today, if I am using sublime-text instead of nano to commit or amend my changes willl not allow me to do a git review remote: Hint: To automatically insert Change-Id, install the hook: remote: gitdir=$(git rev-parse…
raduken
  • 1,686
  • 13
  • 54
  • 95
0
votes
2 answers

Multi git repo fast data mining API

Is there a system which allows fast API access to the complete version history and any version of any file in any out of several hundred git repos. The git CLI is way too slow. Gerrit is even slower. I am basically looking for something which can…
Timmy Brolin
  • 914
  • 6
  • 16
0
votes
1 answer

Gerrit: limit number of open changes for a project?

is it possible to configure a hard limit on the number of open changes for a given project in Gerrit? When too many changes accumulate, rebasing them becomes an issue, especially when every rebase triggers a Jenkins job which takes some time to…
schwart
  • 108
  • 7
0
votes
2 answers

Gerrit is not allowing to push the code

i have a git repository where i have create one project. There are already some existing projects which are working fine. Now i want to push the code of this new project, i have added the gerrit change-id in the commit but still i am getting the…
saurav
  • 4,032
  • 7
  • 38
  • 74
0
votes
3 answers

Git - push after feature branch rebase

I have a git repo and currently I'm working in the feature branch. I have something like that: dev: ---1--2--3-- \ fb: --f1 While I was working on my feature branch, more commits to dev happened, so I rebased on it and…
Rahul
  • 1,330
  • 2
  • 13
  • 25
0
votes
1 answer

Create first new Gerrit dashboard

I have a Gerrit project without any dashboards defined. To make the differentiation between multiple projects on the same Gerrit server easier I would like to create a new dashboards for one of the projects. The official documentation (at least as…
Lennart
  • 91
  • 7
0
votes
1 answer

Make all Gerrit Repositories Read only

I need to find a way to make all Repositories within gerrit "read only", without having to do each one individually. Any help will be much appreciated.
Luke
  • 55
  • 8
0
votes
1 answer

Gerrit image compare

I want to enable diff for images in gerrit. After looking into the documentation https://gerrit-review.googlesource.com/Documentation/config-gerrit.html#mimetype [mimetype "image/*"] safe = true was added for all images. We are running Gerrit…
Pris0n
  • 285
  • 5
  • 20
0
votes
0 answers

git review, command shows so many outstanding commits , which are not mine

"You are about to submit multiple commits. This is expected if you are submitting a commit that is dependent on one or more in-review commits. Otherwise you should consider squashing your changes into one commit before submitting." this is the…
Gnanesh
  • 3
  • 3
0
votes
1 answer

Error "Project is subscribed by other projects" when deleting Gerrit project

I am trying to delete one Gerrit project which is causing some problems. When I click on the "Delete" button I get this error. Gerrit Code review error: Project is subscribed by other projects. I looked at the project.config but could not find any…
ayakout
  • 29
  • 7