File tree Expand file tree Collapse file tree 1 file changed +1
-15
lines changed
Expand file tree Collapse file tree 1 file changed +1
-15
lines changed Original file line number Diff line number Diff line change @@ -1180,20 +1180,6 @@ static void die_bad_number(const char *name, const char *value)
11801180 }
11811181}
11821182
1183- NORETURN
1184- static void die_bad_bool (const char * name , const char * value )
1185- {
1186- if (!strcmp (name , "GIT_TEST_GETTEXT_POISON" ))
1187- /*
1188- * We explicitly *don't* use _() here since it would
1189- * cause an infinite loop with _() needing to call
1190- * use_gettext_poison().
1191- */
1192- die ("bad boolean config value '%s' for '%s'" , value , name );
1193- else
1194- die (_ ("bad boolean config value '%s' for '%s'" ), value , name );
1195- }
1196-
11971183int git_config_int (const char * name , const char * value )
11981184{
11991185 int ret ;
@@ -1268,7 +1254,7 @@ int git_config_bool(const char *name, const char *value)
12681254{
12691255 int v = git_parse_maybe_bool (value );
12701256 if (v < 0 )
1271- die_bad_bool ( name , value );
1257+ die ( _ ( "bad boolean config value '%s' for '%s'" ) , value , name );
12721258 return v ;
12731259}
12741260
You can’t perform that action at this time.
0 commit comments