* Some trivial question about git update-ref refs/heads/rocko ...
@ 2017-12-20 16:32 Zoran Stojsavljevic
2017-12-20 22:45 ` Andre McCurdy
0 siblings, 1 reply; 3+ messages in thread
From: Zoran Stojsavljevic @ 2017-12-20 16:32 UTC (permalink / raw)
To: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 1063 bytes --]
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@localhost poky]$ pwd
/home/user/YOCTO/oe_core_embedded/poky
[user@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@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@localhost poky]$
What I am doing wrong?!
Thank you,
Zoran
[-- Attachment #2: Type: text/html, Size: 1468 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Some trivial question about git update-ref refs/heads/rocko ...
2017-12-20 16:32 Some trivial question about git update-ref refs/heads/rocko Zoran Stojsavljevic
@ 2017-12-20 22:45 ` Andre McCurdy
2017-12-21 14:10 ` Zoran Stojsavljevic
0 siblings, 1 reply; 3+ messages in thread
From: Andre McCurdy @ 2017-12-20 22:45 UTC (permalink / raw)
To: Zoran Stojsavljevic; +Cc: Yocto Project
On Wed, Dec 20, 2017 at 8:32 AM, Zoran Stojsavljevic
<zoran.stojsavljevic@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@localhost poky]$ pwd
> /home/user/YOCTO/oe_core_embedded/poky
> [user@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@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@localhost poky]$
>
> What I am doing wrong?!
To switch from rocko to master, try:
git fetch origin
git checkout -B master origin/master
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Some trivial question about git update-ref refs/heads/rocko ...
2017-12-20 22:45 ` Andre McCurdy
@ 2017-12-21 14:10 ` Zoran Stojsavljevic
0 siblings, 0 replies; 3+ messages in thread
From: Zoran Stojsavljevic @ 2017-12-21 14:10 UTC (permalink / raw)
To: Andre McCurdy; +Cc: Yocto Project
[-- Attachment #1: Type: text/plain, Size: 2723 bytes --]
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@localhost poky]$ pwd
/home/user/YOCTO/oe_core_embedded/poky
[user@localhost poky]$* cd .git/refs/heads*
[user@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@localhost heads]$ cat rocko
65d23bd7986615fdfb0f1717b615534a2a14ab80
[user@localhost heads]$ cat master
*370483fce1c2429c81b19dcf8a36394dc3fc3d92 <<===== MASTER current HEAD!*
[user@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@gmail.com> wrote:
> On Wed, Dec 20, 2017 at 8:32 AM, Zoran Stojsavljevic
> <zoran.stojsavljevic@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@localhost poky]$ pwd
> > /home/user/YOCTO/oe_core_embedded/poky
> > [user@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@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@localhost poky]$
> >
> > What I am doing wrong?!
>
> To switch from rocko to master, try:
>
> git fetch origin
> git checkout -B master origin/master
>
[-- Attachment #2: Type: text/html, Size: 6107 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-12-21 14:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-20 16:32 Some trivial question about git update-ref refs/heads/rocko Zoran Stojsavljevic
2017-12-20 22:45 ` Andre McCurdy
2017-12-21 14:10 ` Zoran Stojsavljevic
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.