]> Kevux Git Server - rit/commit
t0410: convert tests to use DEFAULT_REPO_FORMAT prereq
authorPatrick Steinhardt <ps@pks.im>
Thu, 15 Feb 2024 08:25:34 +0000 (09:25 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Feb 2024 18:12:30 +0000 (10:12 -0800)
commite98839843b1169b92d863eb56f1d3299c6fad8b9
tree3ed0517febed0e8c09d5bd3070c40aff3a5b6ba5
parent161d9816419796ec5710806a0ee08a3f6359c0eb
t0410: convert tests to use DEFAULT_REPO_FORMAT prereq

In t0410 we have two tests which exercise how partial clones behave in
the context of a repository with extensions. These tests are marked to
require a repository using SHA1 and the "files" backend because we
explicitly set the repository format version to 0, and setting up either
the "objectFormat" or "refStorage" extensions requires a repository
format version of 1.

We have recently introduced a new DEFAULT_REPO_FORMAT prerequisite.
Despite capturing the intent more directly, it also has the added
benefit that it can easily be extended in the future in case we add new
repository extensions. Adapt the tests to use it.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0410-partial-clone.sh