2,025 questions
-1
votes
1
answer
55
views
There is one active patchset which is not merged to my Master....I want to merge that patch set to my local and don't want to affect remote [closed]
There is new version of 8 of my files which I have cloned , Those new 8 files are presented in a patchset which is not yet merged with the master,So I want to replace my old 8 files in local with that ...
-4
votes
1
answer
142
views
Retain only initial & latest commit
I need to retain only the initial & latest commit in both the master and release branches of my Gerrit repository.
So how do i remove all previous commits and keep only the initial(repository ...
1
vote
1
answer
135
views
How can I resolve merge conflicts in a Gerrit merge commit without redoing the entire merge process?
I have two branches, A and B. I merged A into B, resolving numerous merge conflicts in the process. However, while I was working on the merge, branch B moved forward.
When I pushed my merge commit to ...
-1
votes
1
answer
71
views
Git push to Gerrit only the HEAD commit excluding previously cherry-picked commits
I have cherry-picked a number of changes and would like to update and push only the top-level commit. However, all the cherry-picked commits are also getting updated. For example, change 444683 ...
0
votes
0
answers
59
views
Why Gerrit Only Shows the Latest Change Instead of the Full File Update when pushed from one branch to other
Branch Setup:
• I started with a main branch.
• Then, I created a task branch from main.
Incremental Changes:
• On task, I edited my.txt multiple times:
• First, I added “Shape” and committed and ...
0
votes
0
answers
319
views
fatal: update_ref failed for ref 'HEAD'
I am trying to clone a git repository from the gerrit system, but I encounter an error given below.
$ git clone ssh://gerrit.codereview.com:29418/repo/abc
Cloning into 'abc'...
remote: Counting ...
1
vote
1
answer
127
views
Create a new patch set in Gerrit before reviewing patch set 1?
I am new to Gerrit, and I want to know about patch sets. Suppose I have created a review in Gerrit with patch set 1, and the review is still in progress. I know that some of the code needs to be ...
0
votes
2
answers
143
views
how to read json data in groovy
Team,
I am making a call to gerrit server and return is I believe json. From this I am trying to read fields but getting error in the first step itself. any hint? My call to gerrit and storing its ...
-1
votes
2
answers
121
views
Can't clone git repo due to username being in capital letters
I just got a new computer. Installed git and gerrit as i always do. Now for some reason i can't clone my repos using the functions i previously had. I did some fault tracing and found that the reason ...
0
votes
1
answer
52
views
In Gerrit's REST API, how do I find the patchset ID Values? I have the url.../details JSON but can't find it in there
I am making a request.get to get the JSON, and want to do it again with the latest patchset and the extension /revisions/(patchSetNumber)/files to find all the modified files. I can't figure out how ...
1
vote
2
answers
189
views
Suggestions for good workflows with git, when gerrit is the central repo
I have some major overhead when working with Gerrit. I have not found any guides that makes sense to me, on how to adopt a local workflow for Gerrit. What follows is how I work locally when the ...
0
votes
0
answers
73
views
Can I update latest Gerrit commit without submitting the chained commits?
I have chained commits in Gerrit (all in review, not yet merged).
I want to update the most recent one without changing previous commits
I've tried updating latest patch (git ammend) and pushing it to ...
0
votes
0
answers
60
views
The commit-received hook is not displaying the list of committed files
"We have configured a Git server with Gerrit, and the Gerrit version is 2.16.28.The gerrit installed in linux server.Currently, we are committing projects from Eclipse using Windows OS. Now, the ...
0
votes
0
answers
53
views
How does SSH make sure server side output not lost while client side consume slowly
I'm developing an application that consumes result of command ssh -p29418 [email protected] gerrit stream-events -s comment-added.
This command output events as json, one event per line.
{"type"...
0
votes
1
answer
51
views
git is updating two branches on gerrit server
when I do git push origin HEAD:refs/for/main the changes are being pushed to two branches. How can i just push to my branch? there is something messed up in my local settings.. I don't want to push ...
1
vote
0
answers
301
views
How to integrate GitHub with Gerrit?
I tried the following:
I have installed Gerrit Code Review (3.9.4), using the plugins section installed the "GitHub" plugin. However, I could not locate useful ways to integrate a GitHub ...
1
vote
2
answers
384
views
AOSP mirroring into local gerrit
I'm trying to mirror the AOSP code into our local Gerrit system using the bash method below.
#!/bin/bash
repo init -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r9 --mirror
...
0
votes
1
answer
110
views
How can I get the change id for the latest Gerrit commit
I am automating a simple Gerrit workflow of commit, push and approve a change. Sometimes the pushes fail with an error message
[Nest] 91608 - 02/02/2024, 8:27:46 PM ERROR
Error: To ssh://git.xxxx:...
0
votes
0
answers
151
views
How do I get a list of gerrit commits between start and end SHA1 without cloning the project
I am trying to find a way to get a list of Gerrit commits between given start commit SHA to end commit SHA without cloning the repository.
I tried the following Gerrit query:
ssh -p 29418 my.gerrit....
0
votes
0
answers
51
views
Gerrit Local setup for UI issue
I am trying to setup Gerrit to develop new feature. I have installed all the required software as per the Gerrit offical documents.
Followed link: https://gerrit-review.googlesource.com/Documentation/...
1
vote
1
answer
190
views
Edit remote reference in Git Config
I work with Gerritt and need some help in automating a manual step in our code check in process. Here is the background. When I clony my repo afresh, here is what I see in my Git config (inside .git ...
0
votes
1
answer
553
views
Gerrit shows LDAP: error code 48 - anonymous bind disallowed
I try to setup Gerrit with openldap authentication. Here's my config:
[auth]
type = LDAP
gitBasicAuthPolicy = HTTP
userNameCaseInsensitive = true
[ldap]
server = ldap://...
0
votes
1
answer
137
views
Update local commit message after updating commit message on Gerrit UI?
I have updated commit message in gerrit UI directly there but this is not changed in my local commit in my laptop. How can I update my local commit message or How can I pull my updated gerrit changes ...
0
votes
1
answer
140
views
Cannot create branch on Gerrit
I am not able to create remote branches on Gerrit. The project configuration is as follows
Reference:
refs/heads/*
Create Reference
Owners
Reference
refs/heads/work_*
Create Reference
Owners
...
1
vote
1
answer
125
views
Automatically add macros for C in git patch
For c/cpp code I want to add all my newly added changes inside a macro and removed changes in the else part.
e.g. for the below patch
diff --git a/test.c b/test.c
index a35d23a..5ee498a 100644
--- a/...
0
votes
2
answers
48
views
unable to see the changed files in git from branchA in new BranchB
Team, my need to copy all the changed files from BranchA (unmerged but pushed to remote) to new BranchB. so I did below
git checkout old-change-1947545
git branch -c BranchB
vi src/test.py (add a ...
1
vote
0
answers
266
views
How to reply to a message using Gerrit REST?
I am trying to use Gerrit's REST Api to post a message to an existing review, and then reply to the same message, similar to the REPLY button that exists on the web version of Gerrit.
Running the ...
1
vote
1
answer
672
views
Is it possible in Gerrit to add a comment to a file that is not included the the patch set?
Is it possible in Gerrit to add a comment to a file that is not included the the patch set.
For example change is in file A and you want to add a comment to file B (which is not included in the ...
0
votes
1
answer
168
views
Gerrit git push origin tips missing change-id
I have a problem as follow. I have excute five times git push origin but followd with run git push origin HEAD:refs/for/feature_1.0, The terminal tips missings change-id
I have tried to fixed the ...
-2
votes
1
answer
84
views
How to make a branch from someone else's merge request on git/gerrit?
I have a userA who created a branch and pushed several commits to it on gerrit. Now me as userB want to pull all his branch and create a new one of my own as myself author and test few things. How can ...
0
votes
2
answers
440
views
Git pushes to wrong gerrit change
I tried to push to gerrit after my new commit but I get this error:
! [remote rejected] HEAD -> refs/for/master (change (here is my change link) closed)
error: failed to push some refs to 'link to ...
0
votes
1
answer
415
views
Gerrrit to fetch only meta/project.config file?
Is there any way to fetch only meta/project.config from gerrit project, instead of cloning the full source.
I.e. is there a way to fetch the meta/config tag, without cloning the complete source using ...
0
votes
0
answers
645
views
Export gerrit cmd query to csv, excel, or text
I am trying to save a JSON format from Gerrit query (via cmd line) to csv/xlsx from gerrit query? I have the query:
ssh -p 29418 uie7*@buic-scm-*.com gerrit query "project:^.my_gerrit_prject. ...
0
votes
1
answer
346
views
Does Gerrit have an owner for each branch?
I am setting up Gerrit in an on-premise environment and conducting various tests. I have a question regarding the commit & push permissions on Gerrit branches.
Does Gerrit have an owner for each ...
0
votes
1
answer
53
views
Cannot select some people from reviewer drop-down in gerrit
I'm having trouble figuring out what is going on here. Suddenly I found out that users cannot add me as a reviewer on their changes. When clicking on the edit link to add reviewers, I simply do not ...
0
votes
1
answer
254
views
How can I push changes to a remote branch on GitHub without having to create a rebase node on git tree?
I have just recently moved from Gerrit to GitHub and am currently figuring out a fitting workflow. My workflow at the present is as following:
start
--- a (master, origin/master)
Create branch and ...
-1
votes
1
answer
168
views
Question about installing and configuring Gerrit in an on-premise environment on Ubuntu
I am experiencing an issue while setting up Gerrit for testing purposes in an on-premise environment on Ubuntu.
I followed the official documentation and various articles to install Gerrit and was ...
0
votes
1
answer
141
views
How to compare the diff between two branches, excluding rebase commit
Background:
I have developed a code review platform that was inspired by the design of Gerrit.
In this platform, there is a concept of "revision," which can have multiple "patchsets.&...
0
votes
1
answer
615
views
How to integrate gerrit to jira
I am currently setting up my own Gerrit server (version: gerrit-3.8.0.war)
and I am also using Jira (https://xxxx.atlassian.com).
Jira provides a plugin named "GITHUB FOR JIRA" that allows ...
2
votes
0
answers
122
views
How to integrate GitHub private repository to my Gerrit server
Hello Stack Overflow Community,
I am currently in the process of integrating Gerrit with GitHub, following the guide provided here: link to the guide.
Upon completion of the setup process, I was able ...
0
votes
2
answers
149
views
Trigger build when the content of specific file merged in gerrit repo
I am looking to create a Jenkins pipeline job that triggers when the content of the file filename.json changes merged in the Gerrit repository's master branch.
.
├── Readme
├── tools-
└── src
└── ...
0
votes
1
answer
807
views
How to download/apply all patches from gerrit
Can you explain how to work with the same change_id in gerrit simultaneously, let's say me and someone else? We are doing all the things the same way:
git review -d change_id;
git add -A;
git commit --...
0
votes
1
answer
123
views
Tag for entire AOSP repository for a local git server setup
I setup a AOSP code for my local git server with the following steps,
Mirror code on server :
mkdir AOSP_MIRROR
cd AOSP_MIRROR
repo init -u https://android.googlesource.com/platform/manifest -b ...
0
votes
1
answer
342
views
setting up AOSP repository for local git server
requirement is that i have to setting up a particular AOSP source code (eg:android-12.1.0_r12) for my local git server which is available on google android page and other people( client machine ) from ...
-1
votes
1
answer
392
views
git pull creates an unnecessary merge commit
My team uses gerrit to store source code, and we're all developing on main branch (team's WoW). Here is the situation I'm deal with:
I make some changes in main, push it and wait for review. If I run ...
1
vote
0
answers
72
views
Why is there an `ownerin` but no `authorin` query in Gerrit?
It seems such an obvious omission to have an -in version to match group membership only for owner and not for author (or attention, for that matter).
4
votes
0
answers
771
views
Is there any way to sort changes by time in Gerrit?
This document describes how we can get gerrit commits within a date range. For example,
project:team/teamx/appx before:2018-1-1 after:2016-12-31
returns the list of all commits of years 2017. ...
1
vote
0
answers
90
views
Access all accounts in which are in Gerrit server
I am implementing some automation framework on gerrit server
I was trying to pull all the users using the below api
gerritApi.accounts().query() // it is giving not implemented exception
gerritApi....
0
votes
1
answer
719
views
how to create hashtag for a gerrit cahnge from ssh?
I wanted to create hashtag using ssh gerrit command.
Example: i tried below
ssh -p 22 server.com gerrit set-reviewers --add "#bugfix" 123455
its giving error account bugfix not found
also ...
0
votes
1
answer
131
views
Gerrit WEB UI connections are short
I would like to know if there is any option to control the web UI Gerrit sessions.
The default is 30 mins and I would like to change it to ~10 hours session.
If anybody is familiar with such ...