Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-07-17 03:42:47 +0300
committerJunio C Hamano <gitster@pobox.com>2021-07-17 03:42:47 +0300
commita93c6fd677f16285ce1109f9f200b2b235ab981e (patch)
treef41a55ef2d736a19648bed510aa9ff8cdee40aee /read-cache.c
parentfba551379ef89b92b9356caa4096144026250c22 (diff)
parentdc0592941138df684770bfe800ccad6b810214c3 (diff)
Merge branch 'ew/mmap-failures'
Error message update. * ew/mmap-failures: xmmap: inform Linux users of tuning knobs on ENOMEM
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index 0c3ac3cefc..ba2b012a6c 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -2233,7 +2233,8 @@ int do_read_index(struct index_state *istate, const char *path, int must_exist)
mmap = xmmap_gently(NULL, mmap_size, PROT_READ, MAP_PRIVATE, fd, 0);
if (mmap == MAP_FAILED)
- die_errno(_("%s: unable to map index file"), path);
+ die_errno(_("%s: unable to map index file%s"), path,
+ mmap_os_err());
close(fd);
hdr = (const struct cache_header *)mmap;