]> git.ipfire.org Git - thirdparty/git.git/commit
config: correct bad boolean env value error message
authorCalvin Wan <calvinwan@google.com>
Fri, 29 Sep 2023 21:20:50 +0000 (14:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Sep 2023 22:14:56 +0000 (15:14 -0700)
commite16be13cfaf1102340c7816d14cec2009a864faf
tree69112331c66161daef19e4af91c713cc22b198f0
parentafd2a1d5f1fc371fe1fda0ed07e0f2f27100fbab
config: correct bad boolean env value error message

An incorrectly defined boolean environment value would result in the
following error message:

bad boolean config value '%s' for '%s'

This is a misnomer since environment value != config value. Instead of
calling git_config_bool() to parse the environment value, mimic the
functionality inside of git_config_bool() but with the correct error
message.

Signed-off-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
config.c