]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t1414: mark corruption test with REFFILES
authorHan-Wen Nienhuys <hanwen@google.com>
Mon, 31 May 2021 16:56:31 +0000 (16:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Jun 2021 01:01:55 +0000 (10:01 +0900)
The test checks what happens if reflog and ref database disagree on the state of
the latest commit. This seems to require accessing reflog storage directly.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1414-reflog-walk.sh

index 80d94704d012dfc8503f7ea25298f8fce5eda6c5..ea64cecf47bf14277c79cc54e954c64022e0519a 100755 (executable)
@@ -119,7 +119,9 @@ test_expect_success 'min/max age uses entry date to limit' '
        test_cmp expect actual
 '
 
-test_expect_success 'walk prefers reflog to ref tip' '
+# Create a situation where the reflog and ref database disagree about the latest
+# state of HEAD.
+test_expect_success REFFILES 'walk prefers reflog to ref tip' '
        head=$(git rev-parse HEAD) &&
        one=$(git rev-parse one) &&
        ident="$GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE" &&