preload-index: use git_env_bool() not getenv() for customization
authorBen Peart <redacted>
Tue, 18 Sep 2018 23:29:34 +0000 (23:29 +0000)
committerJunio C Hamano <redacted>
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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
preload-index.c
git clone https://git.99rst.org/PROJECT