Thread (4 messages) flat view 4 messages, 3 authors, 2022-09-07

Re: [PATCH 2/3] upload-pack: skip parse-object re-hashing of "want" objects

From: Junio C Hamano <hidden>
Date: 2022-09-07 19:26:47

Possibly related (same subject, not in this thread)

Jeff King [off-list ref] writes:
The exception for both is if --verify-objects is used. In that case,
we'll skip this optimization, and the new test makes sure we do this
correctly.
I wondered if we want to test the change on the "upload-pack" side
by going in to the swapped-commits repository, running upload-pack
manually and seeing that it spews unusable output without failing,
but it probably is not worth the effort.  We have plenty of tests
that exercises upload-pack in "good" cases.  What might be a good
test is to try fetching from swapped-commits repository and make
sure that index-pack on the receiving end notices, but I suspect we
already have such a "fetch/clone from a corrupt repository" test,
in which case we do not have to add one.

Thanks.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help