Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » prohibited by Gerrit
prohibited by Gerrit [message #645387] Thu, 16 December 2010 22:57 Go to next message
Thorsten Kamann is currently offline Thorsten Kamann
Messages: 7
Registered: July 2009
Junior Member
I am trying to add a patch to gerrit. After
git push ssh://thorque@egit.eclipse.org:29418/egit.git HEAD:refs/heads/master

I get only a
! [remote rejected] HEAD -> master (prohibited by Gerrit)

What do I wrong?
Thorsten
Re: prohibited by Gerrit [message #645431 is a reply to message #645387] Fri, 17 December 2010 09:14 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias Sohn
Messages: 578
Registered: July 2009
Senior Member
Did you follow the steps given in the Contributor Guide [1] ?

check the following:
- Did you register as user thorque with Gerrit as described in [1] ?
- Does the author/committer email of your patch match the email address you registered with gerrit ?
- Did you upload your public SSH key ?
- What does ssh respond to :
$ ssh -p 29418 thorque@egit.eclipse.org

[1] http://wiki.eclipse.org/EGit/Contributor_Guide#Contributing_ Patches
Re: prohibited by Gerrit [message #645453 is a reply to message #645431] Fri, 17 December 2010 10:00 Go to previous messageGo to next message
Thorsten Kamann is currently offline Thorsten Kamann
Messages: 7
Registered: July 2009
Junior Member
> - Did you register as user thorque with Gerrit as described in [1] ?
yes

> - Does the author/committer email of your patch match the email address you registered with gerrit ?
If I look at my profile in Gerrit there is no emailaddress set. How can I do this?
During registration I have entered my emailadress - of course. But I haven't received any verification email from Gerrit.

> - Did you upload your public SSH key ?
yes

> - What does ssh respond to :
> $ ssh -p 29418 thorque@egit.eclipse.org


**** Welcome to Gerrit Code Review ****

Hi Thorsten XXX, you have successfully connected over SSH.

Unfortunately, interactive shells are disabled.
To clone a hosted Git repository, use:
and so on...

Thorsten
Re: prohibited by Gerrit [message #645471 is a reply to message #645453] Fri, 17 December 2010 10:58 Go to previous messageGo to next message
Stefan Lay is currently offline Stefan Lay
Messages: 340
Registered: July 2009
Senior Member
Hi Thorsten,

you have to push to refs/for/master instead of refs/heads/master.

Gerrit uses this pseudo-branch to follow patches which will later on go to the master branch. Only committers are allowed to push directly to the master branch (refs/heads/master).

Looking forward to your patch Wink
Stefan
Re: prohibited by Gerrit [message #645473 is a reply to message #645471] Fri, 17 December 2010 11:11 Go to previous messageGo to next message
Thorsten Kamann is currently offline Thorsten Kamann
Messages: 7
Registered: July 2009
Junior Member
this works...thanks for your help.
Re: prohibited by Gerrit [message #721885 is a reply to message #645387] Sat, 03 September 2011 11:34 Go to previous messageGo to next message
Ram Patnaik is currently offline Ram Patnaik
Messages: 2
Registered: September 2011
Junior Member
I have created one Project
ssh -p 29418 rampatnaik@107.108.205.104 gerrit create-project -n ram-test
in client pc I have created one folder and created few files .
then
git init
git add file.c
git commit
git remote add origin ssh://107.108.205.104/ram-test

git push origin master:refs/heads/ICS-Android
! [remote rejected] master -> ICS-Android (prohibited by Gerrit)

git push origin master:refs/for/ICS-Android
! [remote rejected] master -> refs/for/ICS-Android (branch ICS-Android not found)

git push origin HEAD:refs/heads/ICS-Android
! [remote rejected] HEAD -> ICS-Android (prohibited by Gerrit)

git push origin HEAD:refs/for/ICS-Android
! [remote rejected] HEAD -> refs/for/ICS-Android (branch ICS-Android not found)

git push origin HEAD:refs/heads/master
! [remote rejected] HEAD -> master (prohibited by Gerrit)

How do I push the changes to different branch
Re: prohibited by Gerrit [message #756768 is a reply to message #721885] Tue, 15 November 2011 01:43 Go to previous messageGo to next message
yujin312.lee is currently offline yujin312.lee
Messages: 1
Registered: November 2011
Junior Member
I have another question.
This mesaage "prohibited by Gerrit" means that i have no authentication.
I think your situation is same mine.
So I have to upload changes to gerrit like "repo upload".

Do you know how to upload(not push) changes to gerrit in eclipse???

[Updated on: Tue, 15 November 2011 01:44]

Report message to a moderator

Re: prohibited by Gerrit [message #757305 is a reply to message #721885] Thu, 17 November 2011 15:59 Go to previous message
Matthias Sohn is currently offline Matthias Sohn
Messages: 578
Registered: July 2009
Senior Member
You first need to create the branch in the server side repository before you can push changes for review for this branch. You can do that from the Gerrit Web UI (http://<host>:<port>/#admin,project,<your-project>,branches or by directly pushing to the not yet existing branch, but this requires you have sufficient privileges.

Such generic questions about Gerrit should rather go to Gerrit's discussion group [1] as they are a bit off-topic for the EGit forum.

[1] http://groups.google.com/group/repo-discuss
Previous Topic:Branch not present after clone
Next Topic:how to tell git to use a remote repository
Goto Forum:
  


Current Time: Thu Sep 18 15:56:09 GMT 2014

Powered by FUDForum. Page generated in 0.05965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software