Re: [PATCH v2 3/6] pack-objects: add GIT_TEST_FULL_NAME_HASH
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Sep 23, 2024, 01:39 UTC
- Message-ID
- <9cd3e993-3273-48af-9990-7a18c8bb668b@gmail.com>
- In-Reply-To
- <xmqq34lv5lnn.fsf@gitster.g>
On 9/19/24 6:22 PM, Junio C Hamano wrote: > "Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:
>> Second, there are two tests in t5616-partial-clone.sh that I believe are >> actually broken scenarios. While the client is set up to clone the >> 'promisor-server' repo via a treeless partial clone filter (tree:0), >> that filter does not translate to the 'server' repo. Thus, fetching from >> these repos causes the server to think that the client has all reachable >> trees and blobs from the commits advertised as 'haves'. This leads the >> server to providing a thin pack assuming those objects as delta bases. > > In short, the tests are based on broken assumption and checking > bogus outcome? Somebody familiar with the partial clone area should > probably take a look into it and fix the tests if that is the case.
That is my understanding, yes. It is a common issue that I've had when using partial clones with multiple remotes and forgetting to modify the filter for each, so is also a usability wart that could use mending (say, by adding the existing filter when adding a new remote).
Thanks, -Stolee