Skip to content

Commit ace40ea

Browse files
hanwengitster
authored andcommitted
t1405: use 'git reflog exists' to check reflog existence
This fixes a test failure for reftable. Signed-off-by: Han-Wen Nienhuys <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 100ac47 commit ace40ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t1405-main-ref-store.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ test_expect_success 'reflog_exists(HEAD)' '
9898

9999
test_expect_success 'delete_reflog(HEAD)' '
100100
$RUN delete-reflog HEAD &&
101-
! test -f .git/logs/HEAD
101+
test_must_fail git reflog exists HEAD
102102
'
103103

104104
test_expect_success 'create-reflog(HEAD)' '
105105
$RUN create-reflog HEAD 1 &&
106-
test -f .git/logs/HEAD
106+
git reflog exists HEAD
107107
'
108108

109109
test_expect_success 'delete_ref(refs/heads/foo)' '

0 commit comments

Comments
 (0)