From: mnm.kernel@gmail.com (Manavendra Nath Manav)
To: kernelnewbies@lists.kernelnewbies.org
Subject: git clone of linux kernel provides only compressed pack files
Date: Fri, 20 Jan 2012 18:38:47 +0530 [thread overview]
Message-ID: <CAJKgH8DpXEcC9aFNDKdz20nR5Gf2FYeOQ3oW-c3T7P+AggUWZQ@mail.gmail.com> (raw)
Hi All,
I cloned 3.2 kernel from git repository, but I am not seeing any
source files. The .git directory contains .git/objects/pack/*.pack
file which is huge and it seems all source code with commit revision
is stored there. When I do "git unpack-objects -r < xyz.pack", it
completes 100% but still no source files show up. The only thing it
generates is some more entries in .git/objects/ directory. The same
problem also occurs when I try to clone android repository. Pls help,
I am sure I am missing some obvious step here.
[root at pe1800xs src]# git clone --recursive -v
http://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Cloning into linux-stable...
remote: Counting objects: 2446667, done.
remote: Compressing objects: 100% (391011/391011), done.
Receiving objects: 18% (447106/2446667), 259.18 MiB | 43 KiB/s
[root at pe1800xs .git]# du -h
4.0K ./objects/info
284M ./objects/pack
285M ./objects
8.0K ./info
4.0K ./refs/tags
4.0K ./refs/heads
12K ./refs
48K ./hooks
4.0K ./branches
285M .
[e518816@pe1800xs common]$ git unpack-objects -r <
.git/objects/pack/pack-d2d041c2bd4a39fdfdf37c896f64a3c1b53d3d2b.pack
Unpacking objects: 100% (2074089/2074089), done.
>From the man page of git-unpack-objects: "Objects that already exist
in the repository will not be unpacked from the pack-file. Therefore,
nothing will be unpacked if you use this command on a pack-file that
exists within the target repository." I guess this is the problem I am
facing. How do I extract the linux souce files (HEAD branch) from pack
file?
--
Thanks & Regards,
Manavendra Nath Manav
next reply other threads:[~2012-01-20 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-20 13:08 Manavendra Nath Manav [this message]
2012-01-20 13:25 ` git clone of linux kernel provides only compressed pack files Mirco Tischler
2012-01-20 18:36 ` Manavendra Nath Manav
2012-01-20 19:13 ` Greg KH
2012-01-20 19:50 ` Manavendra Nath Manav
2012-01-20 15:42 ` Jonathan Neuschäfer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJKgH8DpXEcC9aFNDKdz20nR5Gf2FYeOQ3oW-c3T7P+AggUWZQ@mail.gmail.com \
--to=mnm.kernel@gmail.com \
--cc=kernelnewbies@lists.kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).