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
0
votes
3 answers

Fetching Gerrit SSH output in python

So I am using plumbum to execute the ssh command against gerrit, but I cant seem to be able to pull the output in as a json dictionary. eg: ssh abc.xyz.com gerrit query --patch-sets --format=json commit:12345678 The output of this also dumps the…
Jason
  • 2,246
  • 6
  • 34
  • 53
0
votes
1 answer

git describe --abbrev=0 --tags gives incorrect output

I have the following in git log: commit 546f9a9aa84133cbc490599a094c0199699af949 Author: name Lo aate: Mon Jul 9 14:05:07 9018 -0700 Binary release ABC747T144RC9_REL_7_64_131 for 6789c5 commit…
Ritz
  • 1,193
  • 6
  • 15
  • 26
0
votes
1 answer

Gerrit error says unable to check permissions

Gerrit 2.15.1 Something broke in my Gerrit permission settings. The story: I removed a Project in the Gerrit UI Projects list, and I checked that I wanted it removed even if there were open changes. But I saw that the project still was in my…
MadBys
  • 37
  • 12
0
votes
1 answer

Gerrit LDAP setup and getting InitInjector failed error

i am trying to configure LDAP auth setup in gerrit and to encrypt/decrypt LDAP password from secure.config file , i used secure-config plugin. and i placed that plugin under $gerrit/path/lib and added line in gerrit.config file [gerrit] …
byresh
  • 1
  • 1
0
votes
0 answers

Cannot load plugin events-log in Gerrit

EDIT: There was an update to the plugin some weeks ago, and now I get in the Jenkins log that: Aug 14, 2018 8:57:26 AM WARNING com.sonyericsson.hudson.plugins.gerrit.trigger.playback.GerritMissedEventsPlaybackManager performCheck Missed Events…
MadBys
  • 37
  • 12
0
votes
1 answer

How to create a new .git-project in Gerrit UI as a subdirectory below another directory?

I've setup Gerrit and it's now up and running. I have a lot of already existing git-repositories which is imported/connected to Gerrit. But some of the git-repositories are bunched up together in a directory, as sort of sub-directories to that. I…
MadBys
  • 37
  • 12
0
votes
3 answers

git Unable to pull or fetch code on one project but works fine on other project

I am unable to pull or fetch code on one of my project. Command Issued : $ git pull origin master Error Messages : fatal: internal server error remote: internal server error fatal: protocol error: bad pack header Though, I am able to pull patch…
gambit
  • 85
  • 2
  • 10
0
votes
3 answers

Why am I getting "Error failed to push some refs"?

I am using Git with Gerrit and trying to push the changes with the following command git push origin HEAD:refs/for/master which is failing with following error message Counting objects: 54, done. Delta compression using up to 4 threads. …
Subodh Joshi
  • 12,717
  • 29
  • 108
  • 202
0
votes
0 answers

the root access of Gerrit2 user was removed recently, post which gitweb option is not working. Is it mandatory to have root access for gerrit user?

Earlier, I had root user access on the Linux server, where Gerrit code review and GIT is installed. most gerrit files like gerrit.sh is owned by gerrit2 user and root access of that also has been revoked. Recently I am not able to access GITWEB from…
Saurabhdv27
  • 39
  • 1
  • 8
0
votes
1 answer

Can I use Gerrit code review with an existing Git repository?

I have a git server that I use to clone my sources locally via ssh. I want to use Gerrit server I have installed, but only for code review. I mean - changes are done on "regular" git repository, and Gerrit used for code review only, without…
OkyDokyman
  • 3,786
  • 7
  • 38
  • 50
0
votes
2 answers

Setting up Sonar-Gerrit plugin : Failed to execute command 'gerrit review ' on UserAtHost

I'm trying to set up the Sonar-Gerrit plugin on a Jenkin job. Set up Jenkins Maven job is launched when a patch set to Gerrit I see the error in the Jenkins output. Here is the Jenkins console error output : [ERROR] Failed to execute goal…
haopan
  • 11
  • 4
0
votes
1 answer

How to find out if a Gerrit review is draft or not?

I have a tool that automatically adds reviewers to a Gerrit review. I don't want to add reviewers for draft reviews (created with: git push origin HEAD:refs/drafts/master). I have not been able to figure out how to conclude if a review is a draft or…
0
votes
1 answer

Cloning repository from gerrit sometimes fails

We have a jenkins job configured to fetch changes from gerrit to do CI, sometimes this job fails randomly to perform Git operation's like clone or fetch on the gerrit server. The gerrit server is backed by a postgres database with PGBouncer. The…
0
votes
1 answer

git cannot push after success pull merge local feature branch

I am using gerrit for a project, I have a feature branch locally that has two commits (1) (2) diverged from remote develop branch as show in the image . Before I could push my changes to remote develop, I pulled from remote, merged the changes as…
shelper
  • 10,053
  • 8
  • 41
  • 67
0
votes
1 answer

start gerrit failed after I migrated H2 to postgresql because schema version downgrade is not supported

I create a new gerrit (version: 2.13.11) using postgresql database, then I successfully migrated the H2 datas of my old gerrit (version: 2.13.11) to the new gerrit. I also executed the reindex command. but when I try to start gerrit, it…