mingw: initialize HOME on startup
[gitweb.git] / packfile.c
index 49c8544ff4591e71e1845cd1b275d5fdb898b400..d786ec731202e5d623a7558bec2168194db11514 100644 (file)
@@ -640,7 +640,7 @@ unsigned char *use_pack(struct packed_git *p,
                        while (packed_git_limit < pack_mapped
                                && unuse_one_window(p))
                                ; /* nothing */
-                       win->base = xmmap(NULL, win->len,
+                       win->base = xmmap_gently(NULL, win->len,
                                PROT_READ, MAP_PRIVATE,
                                p->pack_fd, win->offset);
                        if (win->base == MAP_FAILED)