t: introduce GIT_TEST_DEFAULT_REF_FORMAT envvar
commit58aaf59133b4167aefaab6083e80deb369894f79
authorPatrick Steinhardt <ps@pks.im>
Fri, 29 Dec 2023 07:26:56 +0000 (29 08:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 Jan 2024 17:24:48 +0000 (2 09:24 -0800)
tree54813c5ed98f5d846fcc53191f3ab839fd429c49
parentaa19619a9835a9558630c25a5b8f361343af75ce
t: introduce GIT_TEST_DEFAULT_REF_FORMAT envvar

Introduce a new GIT_TEST_DEFAULT_REF_FORMAT environment variable that
lets developers run the test suite with a different default ref format
without impacting the ref format used by non-test Git invocations. This
is modeled after GIT_TEST_DEFAULT_OBJECT_FORMAT, which does the same
thing for the repository's object format.

Adapt the setup of the `REFFILES` test prerequisite to be conditionally
set based on the default ref format.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README
t/test-lib-functions.sh
t/test-lib.sh