diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-05-31 19:56:31 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-02 04:01:55 +0300 |
commit | 41e2e177c7b8d3e8861c30342c5e57edd5425997 (patch) | |
tree | 4545153981dbee88e50b037ab417fe3944d15fdf /t/t1414-reflog-walk.sh | |
parent | 759d02d1aeb2e9d51afe9f948fe0dc15093722a0 (diff) |
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 <hanwen@google.com>
Reviewed-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1414-reflog-walk.sh')
-rwxr-xr-x | t/t1414-reflog-walk.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t1414-reflog-walk.sh b/t/t1414-reflog-walk.sh index 80d94704d0..ea64cecf47 100755 --- a/t/t1414-reflog-walk.sh +++ b/t/t1414-reflog-walk.sh @@ -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" && |