]> git.ipfire.org Git - thirdparty/git.git/commit
setup: add an escape hatch for "no more default hash algorithm" change
authorJunio C Hamano <gitster@pobox.com>
Mon, 20 May 2024 23:14:30 +0000 (16:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 21 May 2024 16:04:12 +0000 (09:04 -0700)
commitd3b2ff75fd7056bc88ea838e8ed5c772ba149e2c
tree0cc367cde4b7c5ceaf01ec76242d80b2696892bd
parent17bc3a4767f2de77b9eb4a8a7b7da966ffbe7ec0
setup: add an escape hatch for "no more default hash algorithm" change

Partially revert c8aed5e8 (repository: stop setting SHA1 as the
default object hash, 2024-05-07), to keep end-user systems still
broken when we have gap in our test coverage but yet give them an
escape hatch to set the GIT_TEST_DEFAULT_HASH_ALGO environment
variable to "sha1" in order to revert to the previous behaviour, in
case we haven't done a thorough job in fixing the fallout from
c8aed5e8.  After we build confidence, we should remove the escape
hatch support, but we are not there yet after only fixing three
commands (hash-object, apply, and patch-id) in this series.

Due to the way the end-user facing GIT_DEFAULT_HASH environment
variable is used in our test suite, we unfortunately cannot reuse it
for this purpose.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
repository.c