[Development] Pushing to gerrit

Sze Howe Koh szehowe.koh at gmail.com
Sun Nov 11 06:56:22 CET 2012


On 11 November 2012 13:46, Sze Howe Koh <szehowe.koh at gmail.com> wrote:
> On 11 November 2012 13:10, Majid Khan <mkhan3189 at gmail.com> wrote:
>> Thanks Sze,
>>
>> I am getting error out of it.
>>
>> fatal: 'gerrit' does not appear to be a git repository
>> fatal: The remote end hung up unexpectedly
>>
>> I have checked my full URL path, thats correct (that I had used to clone
>> repo from) I am trying to push to qt-creator project.
>>
>> Thanks
>
> You're welcome. Did you run the init-repository script, and did you
> pass it your Gerrit username? If you did, your git config file should
> have a section like this:
>
>     [remote "gerrit"]
>     url = ssh://YOURGERRITUSERNAME@codereview.qt-project.org:29418/qt/qtbase
>     fetch = +refs/heads/*:refs/remotes/gerrit/*
>
> (There are a few different places you can clone from, but you need to
> push to the qt-project.org repo)
>
> Also, make sure you've installed your git hooks.

Wait, silly me... the init-repository script is in the main Qt 5 repo.

I've never pushed to qt-creator before so I don't know if there are
any shortcuts, but you can try pushing to
ssh://YOURGERRITUSERNAME@codereview.qt-project.org:29418/qt-creator/qt-creator

Or better, wait for someone with the experience to reply.


You still need to make sure you've got the git hooks installed.


Regards,
Sze-Howe



More information about the Development mailing list