X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=transport-helper.c;h=c7e17ec9cb61e6782bc255e6b90381054255c269;hb=8423083540e08298d3aa3b48e76639658cd11470;hp=cec83bd663d0f27589bd09176e38b084270f56c4;hpb=20aa7c594fbc2e36476daae2f53d7c020306c62c;p=thirdparty%2Fgit.git 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");