git "fatal: reference is not a tree"

399 views
Skip to first unread message

David Doria

unread,
Aug 15, 2013, 1:39:58 PM8/15/13
to android-...@googlegroups.com

I am trying to build the kernel for a Nexus 7 following these instructions:

http://source.android.com/source/building-kernels.html

I got most of the way through the instructions, but am getting a git error. I have explained my procedure below:

mkdir Android

cd Android

git clone https://android.googlesource.com/device/asus/grouper

git clone https://android.googlesource.com/kernel/tegra.git

cd grouper

git log --max-count=1 kernel

/home/doriad/Android/grouper $ git log --max-count=1 kernel

commit 954cdaf3b1671ccf49d42cd605e94b2b20d90e89

Author: Ed Tam <et...@google.com>

Date:   Tue Jun 11 23:58:25 2013 -0700

    grouper: update kernel prebuilt

    1e8b3d8 ashmem: avoid deadlock between read and mmap calls

    Bug: 9261835

    Change-Id: Ib81a9419dfd1659520306011d0be37e6ffacec6f


cd ../tegra/

/home/doriad/Android/tegra $ git checkout 954cdaf3b1671ccf49d42cd605e94b2b20d90e89

fatal: reference is not a tree: 954cdaf3b1671ccf49d42cd605e94b2b20d90e89

That is the best I could gather from the instructions - have I done something wrong?

Thanks,

David

Magnus Bäck

unread,
Aug 20, 2013, 11:39:57 AM8/20/13
to android-...@googlegroups.com
On Thursday, August 15, 2013 at 13:39 EDT,
David Doria <david...@gmail.com> wrote:

> I am trying to build the kernel for a Nexus 7 following these
> instructions:
>
> http://source.android.com/source/building-kernels.html
>
> I got most of the way through the instructions, but am getting a git
> error. I have explained my procedure below:

[...]

> /home/doriad/Android/grouper $ git log --max-count=1 kernel
> commit 954cdaf3b1671ccf49d42cd605e94b2b20d90e89
> Author: Ed Tam <et...@google.com>
> Date: Tue Jun 11 23:58:25 2013 -0700
>
> grouper: update kernel prebuilt
>
> 1e8b3d8 ashmem: avoid deadlock between read and mmap calls
>
> Bug: 9261835
> Change-Id: Ib81a9419dfd1659520306011d0be37e6ffacec6f
>
> cd ../tegra/
>
> /home/doriad/Android/tegra $ git checkout
> 954cdaf3b1671ccf49d42cd605e94b2b20d90e89
> fatal: reference is not a tree: 954cdaf3b1671ccf49d42cd605e94b2b20d90e89
>
> That is the best I could gather from the instructions - have I done
> something wrong?

Yes, you picked the SHA-1 of the 'grouper: update kernel prebuilt'
commit itself, but you should've used the (partial) SHA-1 found in
the commit message (in this case 1e8b3d8).

--
Magnus Bäck
ba...@google.com
Reply all
Reply to author
Forward
0 new messages