]> git.ipfire.org Git - thirdparty/git.git/commit - preload-index.c
preload-index: use git_env_bool() not getenv() for customization
authorBen Peart <benpeart@microsoft.com>
Tue, 18 Sep 2018 23:29:34 +0000 (23:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Sep 2018 17:39:04 +0000 (10:39 -0700)
commit5aacc63f1e8414a12105faa7647c4c11f8acd02d
tree4f8f33d48051f4cd99a8a87af40501ce077afcbf
parentac6e12f9b7794999ba5c9db87b01215ef76e5f33
preload-index: use git_env_bool() not getenv() for customization

GIT_FORCE_PRELOAD_TEST is only checked for presence by using getenv().
Use git_env_bool() instead so that GIT_FORCE_PRELOAD_TEST=false can
work as expected.

Signed-off-by: Ben Peart <Ben.Peart@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
preload-index.c