diff --git a/fast-import.c b/fast-import.c
index 87f36b36c3de8c90c7bea770208cd17f3fedab25..b3ba778924908946a0e20ebfdae9bc2058e8a55e 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
p = xcalloc(1, sizeof(*p) + strlen(tmpfile) + 2);
strcpy(p->pack_name, tmpfile);
p->pack_fd = pack_fd;
+ p->do_not_close = 1;
pack_file = sha1fd(pack_fd, p->pack_name);
hdr.hdr_signature = htonl(PACK_SIGNATURE);