]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fast-import.c
Merge branch 'jc/index-update-if-able' into maint
[thirdparty/git.git] / fast-import.c
index 87f36b36c3de8c90c7bea770208cd17f3fedab25..b3ba778924908946a0e20ebfdae9bc2058e8a55e 100644 (file)
@@ -857,6 +857,7 @@ static void start_packfile(void)
        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);