[Toaster] Process for review requests pushed to poky/contrib?

Amit Kumar Chaudhary amit at floatingpondtech.com
Thu Mar 13 07:07:19 PDT 2014


Thanks Paul.

—amit

On 12 March 2014 at 10:07:09 pm, Paul Eggleton (paul.eggleton at intel.com) wrote:

On Wednesday 12 March 2014 20:30:14 Amit Kumar Chaudhary wrote:
> Here is what I understood from the discussion. For setting up correctly to
> push to poky-contrib and basing the code on poky/master, I need to do the
> following.
>  
> I already had poky-contrib cloned, so I just setup poky in it.
>  
> $ cd poky-contrib
>  
> $ git remote add pokyorigin git://git.yoctoproject.org/poky
>  
> $ git fetch pokyorigin
>  
> $ git branch pokyorigin-master pokyorigin/master
>  
> make changes…
>  
> $ git push origin pokyorigin-master (or any other branch name)


There are a few problems with the above.  

1) The branches that you push to the poky-contrib repository should be called  
<author>/<topic> e.g. paule/engine might be one of my branches.

2) git branch doesn't actually check out anything. Either you need to do a git  
checkout <branchname> afterwards, or alternatively use  
git checkout -b <branchname> to create the branch and check it out in one  
step.

3) Going forward it's going to be a lot easier if everyone's remote called  
"origin" is pointing to the poky repository, and the "poky-contrib" remote  
points to the poky-contrib repository. To change your existing poky-contrib  
clone to be set up that way, you would run:

git remote set-url origin git://git.yoctoproject.org/poky
git remote add poky-contrib ssh://git@git.yoctoproject.org/poky-contrib
git fetch --all -p

Then, each time you start some new work:
1) git checkout origin/master -b <branchname>
2) ... make changes ...
3) git push poky-contrib <branchname>

Cheers,
Paul


---------------------------------------------------------------------
Intel Corporation (UK) Limited
Registered No. 1134945 (England)
Registered Office: Pipers Way, Swindon SN3 1RJ
VAT No: 860 2173 47

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20140313/8ec01342/attachment-0001.html>


More information about the toaster mailing list