]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5516: drop NEEDSWORK about v2 reachability behavior
authorJeff King <peff@peff.net>
Sun, 9 Mar 2025 03:02:03 +0000 (22:02 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Mar 2025 20:13:45 +0000 (13:13 -0700)
When this test was added in 6c301adb0a (fetch: do not pass ref-prefixes
for fetch by exact SHA1, 2018-05-31), there was still some uncertainty
about the v2 protocol's looser behavior with serving objects that are
not directly pointed at by a ref.

At this point that behavior is well established, and I do not think we
would ever change v2 to match the v0 behavior (and if we did,
remembering to update this test is the least of our concerns).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh

index e7629fc536a54cb96f1062b5cafebcf8cf7193b6..e4008f3ca62059f342bf4b12717c81923ac39b15 100755 (executable)
@@ -1312,7 +1312,6 @@ test_expect_success 'fetch exact oid in protocol v2' '
        test_must_fail git -C child cat-file -t $the_commit &&
 
        # fetching the hidden object succeeds by default
-       # NEEDSWORK: should this match the v0 behavior instead?
        git -C child fetch -v ../testrepo $the_commit:refs/heads/copy
 '