t1405: use 'git reflog exists' to check reflog existence

This fixes a test failure for reftable.

Signed-off-by: Han-Wen Nienhuys <hanwen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Han-Wen Nienhuys 2021-08-02 16:53:31 +00:00 committed by Junio C Hamano
parent 100ac47bf3
commit ace40eab9e

View File

@ -98,12 +98,12 @@ test_expect_success 'reflog_exists(HEAD)' '
test_expect_success 'delete_reflog(HEAD)' '
$RUN delete-reflog HEAD &&
! test -f .git/logs/HEAD
test_must_fail git reflog exists HEAD
'
test_expect_success 'create-reflog(HEAD)' '
$RUN create-reflog HEAD 1 &&
test -f .git/logs/HEAD
git reflog exists HEAD
'
test_expect_success 'delete_ref(refs/heads/foo)' '