summaryrefslogtreecommitdiff
path: root/packfile.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-07-25 21:27:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-07-25 21:27:07 (GMT)
commitdae29547c9f0a4895f02d3ba21dc93a7b666e830 (patch)
treeeb374eff4167a7573077ea7e58ecd63f9d876b7d /packfile.c
parent933f294877bac77c6159d93220c5910954712025 (diff)
parent3203566a7109e2b83519b379581005cee178c3fd (diff)
downloadgit-dae29547c9f0a4895f02d3ba21dc93a7b666e830.zip
git-dae29547c9f0a4895f02d3ba21dc93a7b666e830.tar.gz
git-dae29547c9f0a4895f02d3ba21dc93a7b666e830.tar.bz2
Merge branch 'mh/import-transport-fd-fix' into maint
The ownership rule for the file descriptor to fast-import remote backend was mixed up, leading to unrelated file descriptor getting closed, which has been fixed. * mh/import-transport-fd-fix: Use xmmap_gently instead of xmmap in use_pack dup() the input fd for fast-import used for remote helpers
Diffstat (limited to 'packfile.c')
-rw-r--r--packfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/packfile.c b/packfile.c
index 49c8544..d786ec7 100644
--- a/packfile.c
+++ b/packfile.c
@@ -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)