@@ -236,8 +236,8 @@ static char *guess_dir_name(const char *repo, int is_bundle, int is_bare)
236236 strip_suffix_mem (start , & len , is_bundle ? ".bundle" : ".git" );
237237
238238 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" ) );
241241
242242 if (is_bare )
243243 dir = xstrfmt ("%.*s.git" , (int )len , start );
@@ -644,7 +644,7 @@ static void update_remote_refs(const struct ref *refs,
644644 if (create_symref (head_ref .buf ,
645645 remote_head_points_at -> peer_ref -> name ,
646646 msg ) < 0 )
647- die ("unable to update %s" , head_ref .buf );
647+ die (_ ( "unable to update %s" ) , head_ref .buf );
648648 strbuf_release (& head_ref );
649649 }
650650}
@@ -656,7 +656,7 @@ static void update_head(const struct ref *our, const struct ref *remote,
656656 if (our && skip_prefix (our -> name , "refs/heads/" , & head )) {
657657 /* Local default branch link */
658658 if (create_symref ("HEAD" , our -> name , NULL ) < 0 )
659- die ("unable to update HEAD" );
659+ die (_ ( "unable to update HEAD" ) );
660660 if (!option_bare ) {
661661 update_ref (msg , "HEAD" , our -> old_oid .hash , NULL , 0 ,
662662 UPDATE_REFS_DIE_ON_ERR );
@@ -750,7 +750,7 @@ static void write_config(struct string_list *config)
750750 for (i = 0 ; i < config -> nr ; i ++ ) {
751751 if (git_config_parse_parameter (config -> items [i ].string ,
752752 write_one_config , NULL ) < 0 )
753- die ("unable to write parameters to config file" );
753+ die (_ ( "unable to write parameters to config file" ) );
754754 }
755755}
756756
0 commit comments