]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1503: move reffiles specific tests to t0600
authorJohn Cai <johncai86@gmail.com>
Fri, 19 Jan 2024 20:18:57 +0000 (20:18 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 22 Jan 2024 23:57:25 +0000 (15:57 -0800)
Move this test to t0600 with other reffiles specific tests since it
checks for loose refs and is specific to the reffiles backend.

Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0600-reffiles-backend.sh
t/t1503-rev-parse-verify.sh

index 0d6ec020b3d2b6ba93824ecffd74220e46d5dbd7..630b8ee11b3466a9a963e539d7813e36a77be769 100755 (executable)
@@ -359,4 +359,9 @@ test_expect_success 'empty reflog' '
        test_must_be_empty err
 '
 
+test_expect_success SYMLINKS 'ref resolution not confused by broken symlinks' '
+       ln -s does-not-exist .git/refs/heads/broken &&
+       test_must_fail git rev-parse --verify broken
+'
+
 test_done
index bc136833c1098d1c4e43d4b05cfadc7bef50b24c..79df65ec7f619baa053b2aa50d5ec08557cb820a 100755 (executable)
@@ -144,11 +144,6 @@ test_expect_success 'main@{n} for various n' '
        test_must_fail git rev-parse --verify main@{$Np1}
 '
 
-test_expect_success SYMLINKS,REFFILES 'ref resolution not confused by broken symlinks' '
-       ln -s does-not-exist .git/refs/heads/broken &&
-       test_must_fail git rev-parse --verify broken
-'
-
 test_expect_success 'options can appear after --verify' '
        git rev-parse --verify HEAD >expect &&
        git rev-parse --verify -q HEAD >actual &&