@@ -14,10 +14,10 @@ static void create_output_file(const char *output_file)
1414{
1515 int output_fd = open (output_file , O_CREAT | O_WRONLY | O_TRUNC , 0666 );
1616 if (output_fd < 0 )
17- die_errno ("could not create archive file '%s'" , output_file );
17+ die_errno (_ ( "could not create archive file '%s'" ) , output_file );
1818 if (output_fd != 1 ) {
1919 if (dup2 (output_fd , 1 ) < 0 )
20- die_errno ("could not redirect output" );
20+ die_errno (_ ( "could not redirect output" ) );
2121 else
2222 close (output_fd );
2323 }
@@ -33,7 +33,7 @@ static int run_remote_archiver(int argc, const char **argv,
3333
3434 _remote = remote_get (remote );
3535 if (!_remote -> url [0 ])
36- die ("git archive: Remote with no URL" );
36+ die (_ ( "git archive: Remote with no URL" ) );
3737 transport = transport_get (_remote , _remote -> url [0 ]);
3838 transport_connect (transport , "git-upload-archive" , exec , fd );
3939
@@ -43,18 +43,18 @@ static int run_remote_archiver(int argc, const char **argv,
4343
4444 len = packet_read_line (fd [0 ], buf , sizeof (buf ));
4545 if (!len )
46- die ("git archive: expected ACK/NAK, got EOF" );
46+ die (_ ( "git archive: expected ACK/NAK, got EOF" ) );
4747 if (buf [len - 1 ] == '\n' )
4848 buf [-- len ] = 0 ;
4949 if (strcmp (buf , "ACK" )) {
5050 if (len > 5 && !prefixcmp (buf , "NACK " ))
51- die ("git archive: NACK %s" , buf + 5 );
52- die ("git archive: protocol error" );
51+ die (_ ( "git archive: NACK %s" ) , buf + 5 );
52+ die (_ ( "git archive: protocol error" ) );
5353 }
5454
5555 len = packet_read_line (fd [0 ], buf , sizeof (buf ));
5656 if (len )
57- die ("git archive: expected a flush" );
57+ die (_ ( "git archive: expected a flush" ) );
5858
5959 /* Now, start reading from fd[0] and spit it out to stdout */
6060 rv = recv_sideband ("archive" , fd [0 ], 1 );
0 commit comments