[yocto] Some trivial question about git update-ref refs/heads/rocko ...

Zoran Stojsavljevic zoran.stojsavljevic at gmail.com
Thu Dec 21 06:10:23 PST 2017


Hello Andre,

> To switch from rocko to master, try:
>
>  git fetch origin
>  git checkout -B master origin/master

This did the trick... Thank you!

I always thought that I actually initially fetched master release, but it
appears that I fetched rocko as genesis release.

The conclusion/fact given above sustains, because of the following info in
the: .../.git/refs/heads/ (CLI transcript follows):

[user at localhost poky]$ pwd
/home/user/YOCTO/oe_core_embedded/poky
[user at localhost poky]$* cd .git/refs/heads*
[user at localhost heads]$ ls -al
total 16
drwxrwxr-x. 2 user user 4096 Dec 21 06:10 .
drwxrwxr-x. 5 user user 4096 Oct 18 12:49 ..
-rw-rw-r--. 1 user user   41 *Dec 21 06:10 master*
-rw-rw-r--. 1 user user   41 *Oct 18 12:49 rocko*
[user at localhost heads]$ cat rocko
65d23bd7986615fdfb0f1717b615534a2a14ab80
[user at localhost heads]$ cat master
*370483fce1c2429c81b19dcf8a36394dc3fc3d92 <<===== MASTER current HEAD!*
[user at localhost heads]$

Genesis was on October 18th, 2018 (git clone -b rocko git://
git.yoctoproject.org/poky.git), so the command:
git checkout -B master origin/master created today (Dec 21st, 2018) master
HEAD file in .../.git/refs/heads .

Then I again bitbake core-image-sato, worked as a charm.

Thank you again,
Zoran

On Wed, Dec 20, 2017 at 11:45 PM, Andre McCurdy <armccurdy at gmail.com> wrote:

> On Wed, Dec 20, 2017 at 8:32 AM, Zoran Stojsavljevic
> <zoran.stojsavljevic at gmail.com> wrote:
> > I am trying to upgrade my poky distro with current HEAD:
> > 65d23bd7986615fdfb0f1717b615534a2a14ab80
> >
> > It is ~ one month old.
> >
> > And to the latest HEAD:370483fce1c2429c81b19dcf8a36394dc3fc3d92
> > http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=
> 370483fce1c2429c81b19dcf8a36394dc3fc3d92
> >
> > The transcript what I do is below:
> > [user at localhost poky]$ pwd
> > /home/user/YOCTO/oe_core_embedded/poky
> > [user at localhost poky]$ git update-ref refs/heads/rocko
> > 370483fce1c2429c81b19dcf8a36394dc3fc3d92
> > fatal: update_ref failed for ref 'refs/heads/rocko': cannot update ref
> > 'refs/heads/rocko': trying to write ref 'refs/heads/rocko' with
> nonexistent
> > object 370483fce1c2429c81b19dcf8a36394dc3fc3d92
> > [user at localhost poky]$ git update-ref refs/heads/rocko HEAD
> > 370483fce1c2429c81b19dcf8a36394dc3fc3d92
> > fatal: update_ref failed for ref 'refs/heads/rocko': cannot lock ref
> > 'refs/heads/rocko': is at 65d23bd7986615fdfb0f1717b615534a2a14ab80 but
> > expected 370483fce1c2429c81b19dcf8a36394dc3fc3d92
> > [user at localhost poky]$
> >
> > What I am doing wrong?!
>
> To switch from rocko to master, try:
>
>   git fetch origin
>   git checkout -B master origin/master
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171221/8124966b/attachment.html>


More information about the yocto mailing list