@@ -759,9 +759,9 @@ static const char *setup_bare_git_dir(struct strbuf *cwd, int offset,
759759static const char * setup_nongit (const char * cwd , int * nongit_ok )
760760{
761761 if (!nongit_ok )
762- die ("Not a git repository (or any of the parent directories): %s" , DEFAULT_GIT_DIR_ENVIRONMENT );
762+ die (_ ( "Not a git repository (or any of the parent directories): %s" ) , DEFAULT_GIT_DIR_ENVIRONMENT );
763763 if (chdir (cwd ))
764- die_errno ("Cannot come back to cwd" );
764+ die_errno (_ ( "Cannot come back to cwd" ) );
765765 * nongit_ok = 1 ;
766766 return NULL ;
767767}
@@ -842,7 +842,7 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
842842 * nongit_ok = 0 ;
843843
844844 if (strbuf_getcwd (& cwd ))
845- die_errno ("Unable to read current working directory" );
845+ die_errno (_ ( "Unable to read current working directory" ) );
846846 offset = cwd .len ;
847847
848848 /*
@@ -912,19 +912,19 @@ static const char *setup_git_directory_gently_1(int *nongit_ok)
912912 if (parent_device != current_device ) {
913913 if (nongit_ok ) {
914914 if (chdir (cwd .buf ))
915- die_errno ("Cannot come back to cwd" );
915+ die_errno (_ ( "Cannot come back to cwd" ) );
916916 * nongit_ok = 1 ;
917917 return NULL ;
918918 }
919919 strbuf_setlen (& cwd , offset );
920- die ("Not a git repository (or any parent up to mount point %s)\n"
921- "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)." ,
920+ die (_ ( "Not a git repository (or any parent up to mount point %s)\n"
921+ "Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)." ) ,
922922 cwd .buf );
923923 }
924924 }
925925 if (chdir (".." )) {
926926 strbuf_setlen (& cwd , offset );
927- die_errno ("Cannot change to '%s/..'" , cwd .buf );
927+ die_errno (_ ( "Cannot change to '%s/..'" ) , cwd .buf );
928928 }
929929 offset = offset_parent ;
930930 }
@@ -986,9 +986,9 @@ int git_config_perm(const char *var, const char *value)
986986 /* A filemode value was given: 0xxx */
987987
988988 if ((i & 0600 ) != 0600 )
989- die ("Problem with core.sharedRepository filemode value "
989+ die (_ ( "Problem with core.sharedRepository filemode value "
990990 "(0%.3o).\nThe owner of files must always have "
991- "read and write permissions." , i );
991+ "read and write permissions." ) , i );
992992
993993 /*
994994 * Mask filemode value. Others can not get write permission.
0 commit comments