Community
Participate
Working Groups
Can you please enable Gerrit on the following j2ee repositories? git://git.eclipse.org/gitroot/jeetools/webtools.javaee.git/ git://git.eclipse.org/gitroot/jeetools/webtools.javaee.tests.git/ We'd like to allow the current committers to push directly to Git repository with out code review.
I will do the modification now. The repositories won't be available for the next 15/20min.
I've enabled Gerrit for jeetools. You must now use the Gerrit URLs below for origin. You can add it to the list of projects you watch: https://git.eclipse.org/r/#/settings/projects Upload your SSH public keys to Gerrit if you wish to use SSH: https://git.eclipse.org/r/#/settings/ssh-keys Gerrit uses a specific password for https repo access. You can set/reset the password here: https://git.eclipse.org/r/#/settings/http-password Your Gerrit-enabled repo URLs: ssh://committer_id@git.eclipse.org:29418/jeetools/webtools.javaee https://committer_id@git.eclipse.org/r/jeetools/webtools.javaee ssh://committer_id@git.eclipse.org:29418/jeetools/webtools.javaee.tests https://committer_id@git.eclipse.org/r/jeetools/webtools.javaee.tests Gerrit@Eclipse docs: http://wiki.eclipse.org/Gerrit Projects can push directly to master and bypass code review by pushing to refs/heads/master Contributors and committers must push to refs/for/master to trigger code review.
Sorry - for not catching earlier... but the ejb repository is also part of the jeetools project. http://git.eclipse.org/c/jeetools/webtools.ejb.git/ Can we enable this as well? Thanks - Chuck
Done.
Mikael, I am a committer in the Java EE Tools project and I am testing the Gerrit workflow. I am not able to push to Gerrit both via ssh and https. If I try via ssh I get the following error: ssh://kraev@git.eclipse.org:29418/jeetools/webtools.javaee: push not permitted If a try via http then the error is: https://kraev@git.eclipse.org/r/jeetools/webtools.javaee: One or more refs/for/ names blocks change upload I am pretty sure my setup is OK since I am able to push to the Gerrit of many other Eclipse project. Could you verify the Gerrit configuration?
Gerrit logs say: [2015-07-15 17:35:50,177] ERROR com.google.gerrit.server.util.MagicBranch : Repository 'jeetools/webtools.javaee' needs the following refs removed to receive changes: [R3_5_maintenance] We normally see this when someone pushes to refs/for/* outside of Gerrit. After cloning, I see: $ git ls-remote origin refs/for/* ce2fe1ee8206ca9045bcb42d746183783c62f8b8 refs/for/R3_5_maintenance To fix this, we need to delete the ref: git update-ref -d refs/for/R3_5_maintenance Are we clear to do that?
Yes, please remove it. We are just introducing Gerrit to this project. Perhaps, someone pushed to refs/for/R3_5_maintenance by mistake in the past.
Awesome .. give it a try now.
Not the push to Gerrit is successful. Thanks!
(In reply to Kaloyan Raev from comment #9) > Not the push to Gerrit is successful. Thanks! I meant "Now", not "Not"...