]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5516: prefer "oid" to "sha1" in some test titles
authorJeff King <peff@peff.net>
Sun, 9 Mar 2025 03:01:40 +0000 (22:01 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 10 Mar 2025 20:13:44 +0000 (13:13 -0700)
These old tests refer to object ids as "sha1". These days we prefer
the more algorithm-agnostic "oid".

There are a few more tests that mention sha1 in the title and also use
it in variables throughout the test. I've left them for now, as changing
them is more involved (and they're linked to the allowTipSHA1InWant
config, which as a v0-only thing actually is always sha1).

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

index 85ed049627d2e6cf917ef1c7067c141c83779843..e7629fc536a54cb96f1062b5cafebcf8cf7193b6 100755 (executable)
@@ -495,7 +495,7 @@ test_expect_success 'push tag with non-existent, incomplete dest' '
 
 '
 
-test_expect_success 'push sha1 with non-existent, incomplete dest' '
+test_expect_success 'push oid with non-existent, incomplete dest' '
 
        mk_test testrepo &&
        test_must_fail git push testrepo $(git rev-parse main):foo
@@ -1251,7 +1251,7 @@ do
        '
 done
 
-test_expect_success 'fetch exact SHA1' '
+test_expect_success 'fetch exact oid' '
        mk_test testrepo heads/main hidden/one &&
        git push testrepo main:refs/hidden/one &&
        (
@@ -1297,7 +1297,7 @@ test_expect_success 'fetch exact SHA1' '
        )
 '
 
-test_expect_success 'fetch exact SHA1 in protocol v2' '
+test_expect_success 'fetch exact oid in protocol v2' '
        mk_test testrepo heads/main hidden/one &&
        git push testrepo main:refs/hidden/one &&
        git -C testrepo config transfer.hiderefs refs/hidden &&