Skip to content

Commit 41e2e17

Browse files
hanwengitster
authored andcommitted
t1414: mark corruption test with REFFILES
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 <[email protected]> Reviewed-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 759d02d commit 41e2e17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

t/t1414-reflog-walk.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ test_expect_success 'min/max age uses entry date to limit' '
119119
test_cmp expect actual
120120
'
121121

122-
test_expect_success 'walk prefers reflog to ref tip' '
122+
# Create a situation where the reflog and ref database disagree about the latest
123+
# state of HEAD.
124+
test_expect_success REFFILES 'walk prefers reflog to ref tip' '
123125
head=$(git rev-parse HEAD) &&
124126
one=$(git rev-parse one) &&
125127
ident="$GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> $GIT_COMMITTER_DATE" &&

0 commit comments

Comments
 (0)