summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2021-04-13 15:28:52 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-04-13 15:28:53 -0700
commite6545201ad8b26befc627fbe0be366e1ebad99d8 (patch)
treeb1acb5999111dc7921f13d130bac33d601b296d6
parentMerge branch 'gk/gitweb-redacted-email' (diff)
parentconfig.c: remove last remnant of GIT_TEST_GETTEXT_POISON (diff)
downloadtgif-e6545201ad8b26befc627fbe0be366e1ebad99d8.tar.xz
Merge branch 'ab/detox-config-gettext'
The last remnant of gettext-poison has been removed. * ab/detox-config-gettext: config.c: remove last remnant of GIT_TEST_GETTEXT_POISON
-rw-r--r--config.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/config.c b/config.c
index 6428393a41..870d9534de 100644
--- a/config.c
+++ b/config.c
@@ -1180,20 +1180,6 @@ static void die_bad_number(const char *name, const char *value)
}
}
-NORETURN
-static void die_bad_bool(const char *name, const char *value)
-{
- if (!strcmp(name, "GIT_TEST_GETTEXT_POISON"))
- /*
- * We explicitly *don't* use _() here since it would
- * cause an infinite loop with _() needing to call
- * use_gettext_poison().
- */
- die("bad boolean config value '%s' for '%s'", value, name);
- else
- die(_("bad boolean config value '%s' for '%s'"), value, name);
-}
-
int git_config_int(const char *name, const char *value)
{
int ret;
@@ -1268,7 +1254,7 @@ int git_config_bool(const char *name, const char *value)
{
int v = git_parse_maybe_bool(value);
if (v < 0)
- die_bad_bool(name, value);
+ die(_("bad boolean config value '%s' for '%s'"), value, name);
return v;
}