diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-08-02 16:53:31 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-02 13:17:21 -0700 |
commit | ace40eab9e8ee4d087b8ba7b603db4958e8ad28c (patch) | |
tree | f7fbc5e823266ec50d245f5004a08604da6af754 /t | |
parent | t2402: use ref-store test helper to create broken symlink (diff) | |
download | tgif-ace40eab9e8ee4d087b8ba7b603db4958e8ad28c.tar.xz |
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>
Diffstat (limited to 't')
-rwxr-xr-x | t/t1405-main-ref-store.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t1405-main-ref-store.sh b/t/t1405-main-ref-store.sh index a237d9880e..92b0487324 100755 --- a/t/t1405-main-ref-store.sh +++ b/t/t1405-main-ref-store.sh @@ -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)' ' |