gerrit

SSH/HTTP/Anonymous HTTP Clone URL not visible in Gerrit 2.12.2

孤者浪人 提交于 2019-12-24 16:11:06
问题 I just installed the Gerrit code review system release 2.12.2. I'm managing the authentication to the web interface via LDAP. Once I logged in as the Administrator, I created a project called "testProject". I'm unable to see the SSH/Anonymous HTTP/HTTP clone URLs on the project page in the GUI (see below). The documentation says that if download.scheme is left unspecified in the config, SSH/Anonymous HTTP/HTTP download methods will be the default schemes. Also, I'm unable to clone projects

Using LDAP account while pushing to Gerrit

安稳与你 提交于 2019-12-24 11:58:25
问题 I have successfully installed Gerrit and configured it to use LDAP. Now users can login to the GUI with their accounts however they can't push new code. After googling the problem I figured that they must define an HTTP password or SSH hey in order to be used while pushing new code. Is there any way to use the LDAP password instead of creating a separate HTTP password? 回答1: As per Comment, Adding gitBasicAuth = true within [auth] fixed the problem. This configuration could be found in gerrit

How to solve Gerrit's “Your change requires a recursive merge to resolve”

笑着哭i 提交于 2019-12-24 10:42:08
问题 I have the following open review in Gerrit: Change I37783be4 depends on Change Iff96ca11 (MERGED) Change I37783be4 it's depending on an already merged commit, so I would expect that Gerrit knows how to merge it into master. Still I do get the following error: Your change requires a recursive merge to resolve. Please merge (or rebase) the change locally and upload the resolution for review. I tried to fetch that specific changeId and do a 'git rebase master', but the only thing I get back is a

Upload patch set preserving existing reviews

别说谁变了你拦得住时间么 提交于 2019-12-24 10:12:03
问题 We use Jenkins to verify patch sets. Sometimes Jenkins needs do some changes on the patch set. So it commit --amend the changes and then uploads the new patch set. It work nicely besides the fact, that all manual reviews made to the original patch set get erased. How can I push a new patch set (from Jenkins) without loosing all existing reviews/votes? 回答1: Be aware that, in the situation you have described, you have a new patchset and, excluding in special situations, you don't want votes of

How do I fix “StrictVersion instance has no attribute 'version'” in git review

谁都会走 提交于 2019-12-24 09:05:23
问题 I get: Traceback (most recent call last): File "/usr/local/bin/git-review", line 863, in <module> main() File "/usr/local/bin/git-review", line 796, in main needs_update = latest_is_newer() File "/usr/local/bin/git-review", line 147, in latest_is_newer if latest_version > StrictVersion(version): File "/usr/lib/python2.7/distutils/version.py", line 140, in __cmp__ compare = cmp(self.version, other.version) AttributeError: StrictVersion instance has no attribute 'version' How do I fix git

Cannot login after editing email addresses

☆樱花仙子☆ 提交于 2019-12-24 01:09:46
问题 I have Gerrit v3.0.0 running on my server, everything was working fine yesterday. Here's my authentication method : [auth] type = http emailFormat = {0}@domain.com I'm not sure that this is the cause of my problem but I might have deleted my email address xxx@domain.com yesterday. Today when trying to log in to the UI again, I get a HTTP 403 error and logs/error_log said : Cannot assign external ID "username:xxx" to account 1000003; external ID already in use. So I went ahead and deleted

Gerrit will not push. Error: No common ancestry

倾然丶 夕夏残阳落幕 提交于 2019-12-23 22:12:36
问题 Trying to push to gerrit. Brings up no common ancestry. nolan@nolan-pc:~/pac-man$ git push ssh://1KX2@review.pac-rom.com:29418/android_vendor_pac HEAD:refs/for/pac-6.0 Counting objects: 8, done. Delta compression using up to 4 threads. Compressing objects: 100% (8/8), done. Writing objects: 100% (8/8), 6.63 KiB | 0 bytes/s, done. Total 8 (delta 0), reused 0 (delta 0) remote: Processing changes: refs: 1, done To ssh://1KX2@review.pac-rom.com:29418/android_vendor_pac ! [remote rejected] HEAD ->

Register in gerrit with OpenID failed

做~自己de王妃 提交于 2019-12-23 13:57:23
问题 I'm trying to setup the gerrit these days,but when it comes to Register with OpenID,there is always a problem " Provider is not supported, or was incorrectly entered." I have seen the same question on OpenID with Gerrit not working i didn't find the answer.If this is a bug in previous version,My gerrit version is gerrit-1.2.1.6 and it shouldn't have the bug. I noticed that in my corporation my IP address is private 10.238.151.109,and I set the canonical URL like this http://10.238.151.109

git-review -> promote draft to code-review

爷,独闯天下 提交于 2019-12-23 12:35:13
问题 I have created a Gerrit draft: git review -D Once I am done working on the draft, how do I create the code-review so it can eventually be merged to master? If I just do: git-review I get this output: $ git review remote: remote: Processing changes: refs: 1, done To ssh://jonbri@gerrit-foo.com:29418/fooProject ! [remote rejected] HEAD -> refs/publish/master/p-jonbri-gitReviewBranch (no new changes) error: failed to push some refs to 'ssh://jonbri@gerrit-foo.com:29418/fooProject' 回答1: There are

Git pushing from Netbeans to Gerrit

不打扰是莪最后的温柔 提交于 2019-12-23 11:59:39
问题 I have a problem while pushing commits for review to Gerrit from Netbeans 7.4 (on linux). My git config: [core] repositoryformatversion = 0 filemode = true logallrefupdates = true bare = false [remote "origin"] url = ssh://xxx@git.yyyy.com:9418/xxx/gitTestWeb3 fetch = +refs/heads/master:refs/remotes/origin/master push = HEAD:refs/for/master [user] name = Mxxx Cxxx email = xxxx@yyyy.com [branch "master"] remote = origin merge = refs/for/master [push] default = upstream When I try to start "Git