git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Recovering from missing objects?

From
Jeff King <peff@peff.net>
Date
Feb 20, 2009, 06:10 UTC
Message-ID
<20090220061046.GA28122@coredump.intra.peff.net>
In-Reply-To
<7vmychiqr3.fsf@gitster.siamese.dyndns.org>
On Thu, Feb 19, 2009 at 10:09:20PM -0800, Junio C Hamano wrote:
Show 13 quoted lines
> > Might it not be simpler to just copy or hardlink the pack from the new
> > clone into the old directory's .git/objects/pack? That will get more
> > than you need, but things should start working, at which point a "git
> > repack -a -d" will make it small again.
> >
> > Or am I misunderstanding something?
> 
> If you already have a good clone and a half-broken one locally, of course,
> what you said is the easiest.
> 
> I just assumed that Geert did not really want to copy the whole pack.
> Maybe he doesn't mind in this particular case, but the next breakage may
> involve gigapacks he'd rather not re-clone.

Ah, OK. I had the impression that he had already made a new valid clone on the local box.

Show 6 quoted lines
> I also assumed that anybody who is reading the message can easily guess
> that the copy I was demonstrating in the description could be done across
> machines, instead of via local /var/tmp/, and "In the new clone" steps
> could even be done in the original one.  Presenting the knowledge that
> way, the solution hopefully would be adjustable for more people who are
> reading this thread.
Makes sense. Thanks.
-Peff
Previous: Junio C HamanoNext: Geert Uytterhoeven
Message 5 of 6 in “Recovering from missing objects?”
  1. Geert UytterhoevenFeb 19, 2009
  2. Junio C HamanoFeb 20, 2009
  3. Jeff KingFeb 20, 2009
  4. Junio C HamanoFeb 20, 2009
  5. Jeff KingFeb 20, 2009
  6. Geert UytterhoevenFeb 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.