Files
git-mirror/t/t1463-refs-optimize.sh
Patrick Steinhardt 3a58de10ad t: rename GIT_TEST_DEFAULT_REF_FORMAT
With the same reasoning as for all the other environment variables,
rename the GIT_TEST_DEFAULT_REF_FORMAT environment variable to
GIT_TEST_DEFAULT_REF_STORAGE_FORMAT.

Note that in this case, the old name is not retained for backwards
compatibility as this is only running in the context of tests anyway.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2026-09-09 11:04:31 -07:00

20 lines
459 B
Bash
Executable File

#!/bin/sh
test_description='git refs optimize should not change the branch semantic
This test runs git refs optimize and git show-ref and checks that the branch
semantic is still the same.
'
GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main
export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
GIT_TEST_DEFAULT_REF_STORAGE_FORMAT=files
export GIT_TEST_DEFAULT_REF_STORAGE_FORMAT
. ./test-lib.sh
pack_refs='refs optimize'
. "$TEST_DIRECTORY"/pack-refs-tests.sh
test_done