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

Andre McCurdy armccurdy at gmail.com
Wed Dec 20 14:45:49 PST 2017


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



More information about the yocto mailing list