summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-03-21 05:11:46 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-21 05:11:46 (GMT)
commit0bd20f10ea1884c1118efc19ee6325ad6cce9105 (patch)
tree08ca39c465b8782d6e6062fc32b06e0bbafb8bb6 /fast-import.c
parentdd7d0d09765117700db87b4ecf63551dd56a267a (diff)
parentd131b7afea58f47721dafd013ab6aff4adfc42dd (diff)
downloadgit-0bd20f10ea1884c1118efc19ee6325ad6cce9105.zip
git-0bd20f10ea1884c1118efc19ee6325ad6cce9105.tar.gz
git-0bd20f10ea1884c1118efc19ee6325ad6cce9105.tar.bz2
Merge branch 'sp/maint-fd-limit' into maint
* sp/maint-fd-limit: sha1_file.c: Don't retain open fds on small packs mingw: add minimum getrlimit() compatibility stub Limit file descriptors used by packs
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fast-import.c b/fast-import.c
index 87f36b3..b3ba778 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -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);