Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » prohibited by Gerrit
prohibited by Gerrit [message #645387] Thu, 16 December 2010 17:57 Go to next message
Eclipse UserFriend
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 04:14 Go to previous messageGo to next message
Eclipse UserFriend
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 05:00 Go to previous messageGo to next message
Eclipse UserFriend
> - 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 05:58 Go to previous messageGo to next message
Eclipse UserFriend
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 06:11 Go to previous messageGo to next message
Eclipse UserFriend
this works...thanks for your help.
Re: prohibited by Gerrit [message #721885 is a reply to message #645387] Sat, 03 September 2011 07:34 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 14 November 2011 20:43 Go to previous messageGo to next message
Eclipse UserFriend
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: Mon, 14 November 2011 20:44] by Moderator

Re: prohibited by Gerrit [message #757305 is a reply to message #721885] Thu, 17 November 2011 10:59 Go to previous message
Eclipse UserFriend
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: Wed Jun 18 04:52:34 EDT 2025

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

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

Back to the top