[Development] Pushing to gerrit

Majid Khan mkhan3189 at gmail.com
Sun Nov 11 09:32:23 CET 2012


Yup thanks I was successfully able to do this.

Cheers for that :)


On Sun, Nov 11, 2012 at 7:24 PM, Koehne Kai <Kai.Koehne at digia.com> wrote:

>  Hi Khan,
>
> the description of your commit is missing a Change-Id: field. These can be
> added automatically by copying the 'commit-msg' hook to your local
> .git/hooks directory:
>
> cd qt-creator
> scp -p -P 29418 mkhan3189 at codereview.qt-project.org<http://mkhan3189@codereview.qt-project.org:29418/qt-creator/qt-creator>:hooks/commit-msg
> .git/hooks
>
> Then do a git --amend so that the hook has a chance to add the Change-Id
> to your commit.
>
> Details about change-id:
> https://review.typo3.org/Documentation/user-changeid.html
>
> Regards
>
> Kai
>
>  ------------------------------
> *From:* development-bounces+kai.koehne=digia.com at qt-project.org[development-bounces+kai.koehne=
> digia.com at qt-project.org] on behalf of Majid Khan [mkhan3189 at gmail.com]
> *Sent:* 11 November 2012 08:22
> *To:* Thiago Macieira
> *Cc:* Qt Development
> *Subject:* Re: [Development] Pushing to gerrit
>
>  Thanks Thiago,
>
>  Ok, I am exactly trying following (after fetching and rebasing latest
> code):
>
> git push origin HEAD:refs/for/master
>
>  and getting following output:
>
>  Counting objects: 4, done.
> Delta compression using up to 4 threads.
> Compressing objects: 100% (3/3), done.
> Writing objects: 100% (3/3), 381 bytes, done.
> Total 3 (delta 1), reused 0 (delta 0)
> remote: Resolving deltas:   0% (0/1)
> remote: ERROR: missing Change-Id in commit message
> remote: Suggestion for commit message:
> remote: this is test. Please ignore this
> remote:
> remote: Change-Id: Ic0d0954fcae9e4f4cfbb97d4c1902f66e3298030
> To ssh://mkhan3189@codereview.qt-project.org:29418/qt-creator/qt-creator
>  ! [remote rejected] HEAD -> refs/for/master (missing Change-Id in commit
> message)
> error: failed to push some refs to 'ssh://
> mkhan3189 at codereview.qt-project.org:29418/qt-creator/qt-creator'
>
>  Is my push command invalid? If so, could you please help me with valid
> command?
> Thanks
>
>
> On Sun, Nov 11, 2012 at 6:07 PM, Thiago Macieira <
> thiago.macieira at intel.com> wrote:
>
>> On domingo, 11 de novembro de 2012 17.10.14, Majid Khan wrote:
>> > [core]
>> > repositoryformatversion = 0
>> > filemode = true
>> > bare = false
>> > logallrefupdates = true
>> > [remote "origin"]
>> > fetch = +refs/heads/*:refs/remotes/origin/*
>> > url = ssh://
>> mkhan3189 at codereview.qt-project.org:29418/qt-creator/qt-creator
>> > [branch "master"]
>> > remote = origin
>> > merge = refs/heads/master
>> > [branch "test"]
>> > remote = origin
>> > merge = refs/heads/master
>> >
>> >
>>  > *If anyone else has any idea, please help me with this.*
>>
>> There's nothing wrong with your setup.
>>
>> You can push to origin, since that's the Gerrit repository.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) intel.com
>>   Software Architect - Intel Open Source Technology Center
>>
>> _______________________________________________
>> Development mailing list
>> Development at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/development
>>
>>
>
>
>  --
> Majid Khan
> http://www.icplusplus.com
>



-- 
Majid Khan
http://www.icplusplus.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20121111/50041429/attachment.html>


More information about the Development mailing list