git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-relink status (or bug?)
@ 2008-06-21 10:36 Marc Zonzon
  2008-06-21 19:22 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: Marc Zonzon @ 2008-06-21 10:36 UTC (permalink / raw)
  To: git

When trying to use git-relink, I found it quite disappointing when
going over packs. Git relink seem to make the assumption that there is
a unique mapping from object name to object identity, which is of
course acceptable for loose objects that are named with their sha-1
but false for .pack and .idx, to pack objects with the same name have
contains the same objects but may be not packed in the same order, or
compression.
Moreover .idx files can not be considered alone, but depends on the
associated .pack.

When it happen that you have two different packs with the same name
but of different sizes, git relink does not hard link the .packs
because the size differ, and hard link the idx. And your repository is
corrupted.

It happen when you clone a repository, repack the clone and relink the
clone to the original one.

I found very few information about git relink, but as it appears in
changelog of v1.5.4 I suppose it is not obsoleted.

What about the use of this script?

Marc

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-21 20:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-21 10:36 git-relink status (or bug?) Marc Zonzon
2008-06-21 19:22 ` Junio C Hamano
2008-06-21 20:23   ` marc zonzon

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