]> git.ipfire.org Git - thirdparty/git.git/commit
t0001: exercise initialization with ref formats more thoroughly
authorPatrick Steinhardt <ps@pks.im>
Fri, 16 Aug 2024 08:56:53 +0000 (10:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 16 Aug 2024 16:55:21 +0000 (09:55 -0700)
commit05d20915bc2658371989a47ff1214e2eb6506de4
tree6843796c3f444751ecafcd107d3471fc21d2a6a6
parent477ce5ccd69bda5c44f53e3b230f8a9c54217ed6
t0001: exercise initialization with ref formats more thoroughly

While our object format tests for git-init(1) exercise tests with all
known formats in t0001, the tests for the ref format don't. This leads
to some missing test coverage for interesting cases, like whether or not
a non-default ref storage format causes us to bump the repository format
version. We also don't test for the precedence of the `--ref-format=`
and the `GIT_DEFAULT_REF_FORMAT=` environment variable.

Extend the test suite to cover more scenarios related to the ref format.

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