Re: Recovering from missing objects?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff King <peff@xxxxxxxx> writes:

> 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.

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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux