[Engine-devel] git-review error.

snmishra at linux.vnet.ibm.com snmishra at linux.vnet.ibm.com
Mon May 14 20:20:32 UTC 2012


Gilad,

    I followed the same page, section "Submit your topic branch to  
gerrit". Here is what I did -

1. git clone git://gerrit.ovirt.org/ovirt-engine
2. cd ovirt-engine
3. scp -p gerrit.ovirt.org:hooks/commit-msg .git/hooks/
4. cp git-review/git-review ovirt-engine/
5. git-review -s
6. git checkout -b nullpointer
7. git add <<file>>
8. git commit -s
9. git-review -t nullpointer

the "remote" portion of my .git/config file looks like -

[remote "gerrit"]
         url = git://gerrit.ovirt.org/ovirt-engine.git
         pushurl = ssh://snmishra@gerrit.ovirt.org:29418/ovirt-engine.git
         fetch = +refs/heads/*:refs/remotes/gerrit/*

Thanks
Sharad


Quoting Gilad Chaplik <gchaplik at redhat.com>:

> Hi Sharad,
>
> Take a look at  
> http://www.ovirt.org/wiki/Working_with_oVirt_Gerrit#Push_your_patch_for_review
>
> Good luck,
> Gilad.
>
> ----- Original Message -----
>> From: snmishra at linux.vnet.ibm.com
>> To: engine-devel at ovirt.org
>> Sent: Monday, May 14, 2012 9:07:38 PM
>> Subject: [Engine-devel] git-review error.
>>
>>
>> Hi,
>>
>>     I am trying to push a patch to gerrit for review.
>>
>> $ ./git-review -t nullpointer
>> remote: Resolving deltas:   0% (0/6)
>> To ssh://snmishra@gerrit.ovirt.org:29418/ovirt-engine.git
>>   ! [remote rejected] HEAD -> refs/publish/master/nullpointer
>> (prohibited by Gerrit)
>> error: failed to push some refs to
>> 'ssh://snmishra@gerrit.ovirt.org:29418/ovirt-engine.git'
>>
>>
>> I can ssh to gerrit.ovirt.org without password, so that seems to be
>> setup correctly. git-review version is 1.17. I am on 'nullpointer'
>> branch.
>>
>>    Thanks in advance for your help.
>>
>> Regards
>> Sharad Mishra
>>
>> _______________________________________________
>> Engine-devel mailing list
>> Engine-devel at ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/engine-devel
>>






More information about the Devel mailing list