summaryrefslogtreecommitdiff
path: root/t/t4255-am-submodule.sh
diff options
context:
space:
mode:
authorLibravatar Han-Wen Nienhuys <hanwen@google.com>2021-05-31 16:56:28 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-06-02 10:01:54 +0900
commitd491f5ea07e5bb85be75060d3939894892f9478a (patch)
tree4a0f2f15efd3c7de48babdd333a3168962fd1e91 /t/t4255-am-submodule.sh
parentt5304: restyle: trim empty lines, drop ':' before > (diff)
downloadtgif-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/t4255-am-submodule.sh')
0 files changed, 0 insertions, 0 deletions