Re: [Bug] data loss with cyclic alternates
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 11, 2014, 16:01 UTC
- Message-ID
- <xmqqy4vz51gb.fsf@gitster.dls.corp.google.com>
- In-Reply-To
- <53BFB055.206@gmail.com>
Ephrim Khong <dr.khong@gmail.com> writes:
> git seems to have issues with alternates when cycles are present (repo > A has B/objects as alternates, B has A/objects as alternates).
Yeah, don't do that. A thinks "eh, the other guy must have it" and B thinks the same. In general, do not prune or gc a repository other repositories borrow from, even if there is no cycle, because the borrowee does not know anythning about objects that it itself no longer needs but are still needed by its borrowers.