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:
parent
100ac47bf3
commit
ace40eab9e
@ -98,12 +98,12 @@ test_expect_success 'reflog_exists(HEAD)' '
|
|||||||
|
|
||||||
test_expect_success 'delete_reflog(HEAD)' '
|
test_expect_success 'delete_reflog(HEAD)' '
|
||||||
$RUN 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)' '
|
test_expect_success 'create-reflog(HEAD)' '
|
||||||
$RUN create-reflog HEAD 1 &&
|
$RUN create-reflog HEAD 1 &&
|
||||||
test -f .git/logs/HEAD
|
git reflog exists HEAD
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_success 'delete_ref(refs/heads/foo)' '
|
test_expect_success 'delete_ref(refs/heads/foo)' '
|
||||||
|
Loading…
Reference in New Issue
Block a user