diff options
author | Han-Wen Nienhuys <hanwen@google.com> | 2021-05-31 16:56:28 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-06-02 10:01:54 +0900 |
commit | d491f5ea07e5bb85be75060d3939894892f9478a (patch) | |
tree | 4a0f2f15efd3c7de48babdd333a3168962fd1e91 /t/t9111 | |
parent | t5304: restyle: trim empty lines, drop ':' before > (diff) | |
download | tgif-d491f5ea07e5bb85be75060d3939894892f9478a.tar.xz |
t5304: use "reflog expire --all" to clear the reflog
This test checks that unreachable objects are really removed. For the test to
work, it has to ensure that no reflog retain any reachable objects.
Previously, it did this by manipulating the file system to remove reflog in the
first test, and relying on git not updating the reflog if the relevant logfile
doesn't exist in follow-up tests.
Now, explicitly clear the reflog using 'reflog expire'. This reduces the
dependency between test functions. It also is more amenable to use with
reftable, which has no concept of (non)-existence of a reflog
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/t9111')
0 files changed, 0 insertions, 0 deletions