summaryrefslogtreecommitdiffstats
path: root/Documentation/config/protocol.txt
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2019-12-24 01:59:07 +0100
committerJunio C Hamano <gitster@pobox.com>2020-01-15 23:03:55 +0100
commit07ef3c6604c7c3da4b7279cd725cf8e5e0cf7edd (patch)
tree067b54c676cb9c065ea249f0f0544578e5925e9a /Documentation/config/protocol.txt
parentfetch test: mark test of "skipping" haves as v0-only (diff)
downloadgit-07ef3c6604c7c3da4b7279cd725cf8e5e0cf7edd.tar.xz
git-07ef3c6604c7c3da4b7279cd725cf8e5e0cf7edd.zip
fetch test: use more robust test for filtered objects
"git cat-file -e" uses has_object_file, which can fetch from promisor remotes when an object is missing. These tests end up checking that that fetch fails instead of for the object being missing. By luck, the tests pass anyway: - in one of these tests ("filtering by size"), the fetch fails because (in protocol v0) the server does not support fetches by SHA-1 - in the second, the object is present but the test could pass even if it weren't if the fetch succeeds - in the third, the test sets extensions.partialClone to "arbitrary string" so that when it tries to fetch, it looks up the "arbitrary string" remote which does not exist Use "git rev-list --objects --missing=allow-any", so that the tests pass for the right reason. Noticed while testing with protocol v2, which allows fetching by sha1 by default, causing the first fetch to succeed and the test to fail. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/config/protocol.txt')
0 files changed, 0 insertions, 0 deletions