@@ -236,8 +236,8 @@ static char *guess_dir_name(const char *repo, int is_bundle, int is_bare)
236
236
strip_suffix_mem (start , & len , is_bundle ? ".bundle" : ".git" );
237
237
238
238
if (!len || (len == 1 && * start == '/' ))
239
- die ("No directory name could be guessed.\n"
240
- "Please specify a directory on the command line" );
239
+ die ( _ ("No directory name could be guessed.\n"
240
+ "Please specify a directory on the command line" ) );
241
241
242
242
if (is_bare )
243
243
dir = xstrfmt ("%.*s.git" , (int )len , start );
@@ -644,7 +644,7 @@ static void update_remote_refs(const struct ref *refs,
644
644
if (create_symref (head_ref .buf ,
645
645
remote_head_points_at -> peer_ref -> name ,
646
646
msg ) < 0 )
647
- die ("unable to update %s" , head_ref .buf );
647
+ die (_ ( "unable to update %s" ) , head_ref .buf );
648
648
strbuf_release (& head_ref );
649
649
}
650
650
}
@@ -656,7 +656,7 @@ static void update_head(const struct ref *our, const struct ref *remote,
656
656
if (our && skip_prefix (our -> name , "refs/heads/" , & head )) {
657
657
/* Local default branch link */
658
658
if (create_symref ("HEAD" , our -> name , NULL ) < 0 )
659
- die ("unable to update HEAD" );
659
+ die (_ ( "unable to update HEAD" ) );
660
660
if (!option_bare ) {
661
661
update_ref (msg , "HEAD" , our -> old_oid .hash , NULL , 0 ,
662
662
UPDATE_REFS_DIE_ON_ERR );
@@ -750,7 +750,7 @@ static void write_config(struct string_list *config)
750
750
for (i = 0 ; i < config -> nr ; i ++ ) {
751
751
if (git_config_parse_parameter (config -> items [i ].string ,
752
752
write_one_config , NULL ) < 0 )
753
- die ("unable to write parameters to config file" );
753
+ die (_ ( "unable to write parameters to config file" ) );
754
754
}
755
755
}
756
756
0 commit comments