Merge branch 'sg/diff-indent-heuristic-non-experimental'
[gitweb.git] / transport-helper.c
index b11abd291cd22562217ed167107b7eb59414d9a8..6b05a88faf59ee74840b0f9fa340a5d9397a0f5d 100644 (file)
@@ -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");