Skip to content

Commit e3ed67a

Browse files
committed
Merge branch 'db/text-delta' into svn-fe
* db/text-delta: vcs-svn: do not initialize report_buffer twice
2 parents e09ab7d + c5f1fbe commit e3ed67a

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

vcs-svn/fast_export.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
#include "line_buffer.h"
1515

1616
#define MAX_GITSVN_LINE_LEN 4096
17-
#define REPORT_FILENO 3
1817

1918
static uint32_t first_commit_done;
2019
static struct line_buffer postimage = LINE_BUFFER_INIT;
@@ -30,15 +29,6 @@ static int init_postimage(void)
3029
return buffer_tmpfile_init(&postimage);
3130
}
3231

33-
static int init_report_buffer(int fd)
34-
{
35-
static int report_buffer_initialized;
36-
if (report_buffer_initialized)
37-
return 0;
38-
report_buffer_initialized = 1;
39-
return buffer_fdinit(&report_buffer, fd);
40-
}
41-
4232
void fast_export_init(int fd)
4333
{
4434
if (buffer_fdinit(&report_buffer, fd))
@@ -203,8 +193,6 @@ static long apply_delta(off_t len, struct line_buffer *input,
203193

204194
if (init_postimage() || !(out = buffer_tmpfile_rewind(&postimage)))
205195
die("cannot open temporary file for blob retrieval");
206-
if (init_report_buffer(REPORT_FILENO))
207-
die("cannot open fd 3 for feedback from fast-import");
208196
if (old_data) {
209197
const char *response;
210198
printf("cat-blob %s\n", old_data);

0 commit comments

Comments
 (0)