From: "Shawn O. Pearce" <spearce@spearce•org>
To: "Jörg Sommer" <joerg@alea•gnuu.de>
Cc: Christian Couder <chriscool@tuxfamily•org>, git@vger•kernel.org
Subject: Re: How to fetch missing pack
Date: Thu, 24 Apr 2008 02:08:57 -0400 [thread overview]
Message-ID: <20080424060857.GX29771@spearce.org> (raw)
In-Reply-To: <200804240801.13674.chriscool@tuxfamily.org>
Christian Couder <chriscool@tuxfamily•org> wrote:
> Le mercredi 23 avril 2008, Jörg Sommer a écrit :
> > Peter Baumann <waste.manager@gmx•de> wrote:
> > >
> > > Try using git fsck --full to check you repo. If you are missing some
> > > objects, you could just grab them from another valid repo which still
> > > has them.
> >
> > How can I exctract single objects from a pack?
>
> Please have a look at this:
>
> http://git.or.cz/gitwiki/GitFaq#head-ac11406480d09e2df98588e800e41b7256602074
If you know the name of the objects you are missing, you can
make a temporary pack to transfer the list of objects:
# at good repo
#
git pack-objects --stdout <object.list >save.pack
# at bad repo
#
git index-pack --stdin <save.pack
Make object.list just one SHA-1 per line. The resulting pack is
not likely to be highly compressed, as it will probably contain
a non-delta version of each object, but its faster to create than
calling git-cat-file for each object, and may give you a smaller
pack than just copying everything as the FAQ entry recommends.
Note that you may need to do this several times; e.g. if you are
missing a tree you won't know what blobs you are missing until
you load the tree and run fsck --full again to parse the tree and
discover the missing blobs. This iterative copying approach is
what the FAQ avoids when it suggests you copy everything.
--
Shawn.
next prev parent reply other threads:[~2008-04-24 6:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-12 12:07 How to fetch missing pack Jörg Sommer
2008-04-13 9:41 ` Peter Baumann
2008-04-23 20:55 ` Jörg Sommer
2008-04-24 6:01 ` Christian Couder
2008-04-24 6:08 ` Shawn O. Pearce [this message]
2008-04-27 10:47 ` git doesn't finds the parent of a commit (was: How to fetch missing pack) Jörg Sommer
2008-04-27 17:37 ` Stephen R. van den Berg
2008-04-27 20:18 ` git doesn't finds the parent of a commit Junio C Hamano
2008-04-27 21:46 ` Stephen R. van den Berg
2008-04-28 14:14 ` Jörg Sommer
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=20080424060857.GX29771@spearce.org \
--to=spearce@spearce$(echo .)org \
--cc=chriscool@tuxfamily$(echo .)org \
--cc=git@vger$(echo .)kernel.org \
--cc=joerg@alea$(echo .)gnuu.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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