@@ -357,21 +357,21 @@ const char *fmt_ident(const char *name, const char *email,
357
357
if (strict && ident_use_config_only
358
358
&& !(ident_config_given & IDENT_NAME_GIVEN )) {
359
359
fputs (_ (env_hint ), stderr );
360
- die ("no name was given and auto-detection is disabled" );
360
+ die (_ ( "no name was given and auto-detection is disabled" ) );
361
361
}
362
362
name = ident_default_name ();
363
363
using_default = 1 ;
364
364
if (strict && default_name_is_bogus ) {
365
365
fputs (_ (env_hint ), stderr );
366
- die ("unable to auto-detect name (got '%s')" , name );
366
+ die (_ ( "unable to auto-detect name (got '%s')" ) , name );
367
367
}
368
368
}
369
369
if (!* name ) {
370
370
struct passwd * pw ;
371
371
if (strict ) {
372
372
if (using_default )
373
373
fputs (_ (env_hint ), stderr );
374
- die ("empty ident name (for <%s>) not allowed" , email );
374
+ die (_ ( "empty ident name (for <%s>) not allowed" ) , email );
375
375
}
376
376
pw = xgetpwuid_self (NULL );
377
377
name = pw -> pw_name ;
@@ -382,12 +382,12 @@ const char *fmt_ident(const char *name, const char *email,
382
382
if (strict && ident_use_config_only
383
383
&& !(ident_config_given & IDENT_MAIL_GIVEN )) {
384
384
fputs (_ (env_hint ), stderr );
385
- die ("no email was given and auto-detection is disabled" );
385
+ die (_ ( "no email was given and auto-detection is disabled" ) );
386
386
}
387
387
email = ident_default_email ();
388
388
if (strict && default_email_is_bogus ) {
389
389
fputs (_ (env_hint ), stderr );
390
- die ("unable to auto-detect email address (got '%s')" , email );
390
+ die (_ ( "unable to auto-detect email address (got '%s')" ) , email );
391
391
}
392
392
}
393
393
@@ -403,7 +403,7 @@ const char *fmt_ident(const char *name, const char *email,
403
403
strbuf_addch (& ident , ' ' );
404
404
if (date_str && date_str [0 ]) {
405
405
if (parse_date (date_str , & ident ) < 0 )
406
- die ("invalid date format: %s" , date_str );
406
+ die (_ ( "invalid date format: %s" ) , date_str );
407
407
}
408
408
else
409
409
strbuf_addstr (& ident , ident_default_date ());
0 commit comments