aboutsummaryrefslogtreecommitdiffstats
path: root/transport-helper.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-25 14:27:07 -0700
committerJunio C Hamano <gitster@pobox.com>2019-07-25 14:27:07 -0700
commitdae29547c9f0a4895f02d3ba21dc93a7b666e830 (patch)
treeeb374eff4167a7573077ea7e58ecd63f9d876b7d /transport-helper.c
parent933f294877bac77c6159d93220c5910954712025 (diff)
parent3203566a7109e2b83519b379581005cee178c3fd (diff)
downloadgit-dae29547c9f0a4895f02d3ba21dc93a7b666e830.tar.gz
Merge branch 'mh/import-transport-fd-fix' into maint
The ownership rule for the file descriptor to fast-import remote backend was mixed up, leading to unrelated file descriptor getting closed, which has been fixed. * mh/import-transport-fd-fix: Use xmmap_gently instead of xmmap in use_pack dup() the input fd for fast-import used for remote helpers
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/transport-helper.c b/transport-helper.c
index cec83bd663..c7e17ec9cb 100644
--- a/transport-helper.c
+++ b/transport-helper.c
@@ -423,7 +423,7 @@ static int get_importer(struct transport *transport, struct child_process *fasti
struct helper_data *data = transport->data;
int cat_blob_fd, code;
child_process_init(fastimport);
- fastimport->in = helper->out;
+ fastimport->in = xdup(helper->out);
argv_array_push(&fastimport->args, "fast-import");
argv_array_push(&fastimport->args, debug ? "--stats" : "--quiet");