git clone of linux kernel provides only compressed pack files

Manavendra Nath Manav mnm.kernel at gmail.com
Fri Jan 20 14:50:00 EST 2012


On Sat, Jan 21, 2012 at 12:43 AM, Greg KH <greg at kroah.com> wrote:
> On Sat, Jan 21, 2012 at 12:06:08AM +0530, Manavendra Nath Manav wrote:
>> On Fri, Jan 20, 2012 at 6:55 PM, Mirco Tischler <mt-ml at gmx.de> wrote:
>>
>> **snip**
>> > You just need to do git checkout master after the git clone. This
>> > gives you the version the master branch in the stable repo points to
>> > at the time of the cloning.
>> > To update your local master branch later, just do git pull.
>> >
>> > git unpack-objects is usually not directly needed by users. It's
>> > called by git internally though.
>> >
>> > Mirco
>>
>> Thanks Mirco, after doing git checkout and git pull on cloned Linux
>> git repo, I can see all the Linux source files. The problem got
>> resolved for Linux tree but for android repository, I am still facing
>> issues.
>
> That's different, you need to check out the specific android kernel repo
> you want to use, by the branch name.
>
> The android kernel tree is "wierd" that way, try doing this:
>        git checkout android-3.0
> and you should be fine.
>
> Even better yet, do this:
>        git checkout -t -b android-3.0 origin/android-3.0
>
> which creates a "tracking branch" for this branch of their kernel tree,
> which will let you handle things when they update it in the future to
> newer releases.
>
> Hope this helps,
>
> greg k-h

Thanks Greg, the checkout with android-3.0 worked. I feel working with
git is a bit too geeky for the non-initiated. I can upvote this
because i didn't used the "repo python script" provided by Google to
download android source but git alone. Thank you all for the support.

[e518816 at pe1800xs common]$ git checkout android-3.0
Checking out files: 100% (37131/37131), done.
Branch android-3.0 set up to track remote branch android-3.0 from origin.
Switched to a new branch 'android-3.0'

[e518816 at pe1800xs common]$ ls
arch     CREDITS        drivers   include  Kbuild   lib          mm
  REPORTING-BUGS  security  usr
block    crypto         firmware  init     Kconfig  MAINTAINERS  net
  samples         sound     virt
COPYING  Documentation  fs        ipc      kernel   Makefile
README  scripts         tools

-- 
Cheers,
Manavendra Nath Manav



More information about the Kernelnewbies mailing list