diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-04-13 15:28:52 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-04-13 15:28:53 -0700 |
commit | e6545201ad8b26befc627fbe0be366e1ebad99d8 (patch) | |
tree | b1acb5999111dc7921f13d130bac33d601b296d6 | |
parent | Merge branch 'gk/gitweb-redacted-email' (diff) | |
parent | config.c: remove last remnant of GIT_TEST_GETTEXT_POISON (diff) | |
download | tgif-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.c | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -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; } |