Merge branch 'jk/diagnose-config-mmap-failure'
commitdee47925c1d001947cf9a099e1cb883835f90c64
authorJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2015 16:29:55 +0000 (11 09:29 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Jun 2015 16:29:55 +0000 (11 09:29 -0700)
tree43b49f39956a69276de2aa25c956868cc8ec675c
parent8f436d1374c7b8bd29118bd6344520dbaf83594b
parent9ca0aaf6de357d46916d81ca40c47886092fe610
Merge branch 'jk/diagnose-config-mmap-failure'

The configuration reader/writer uses mmap(2) interface to access
the files; when we find a directory, it barfed with "Out of memory?".

* jk/diagnose-config-mmap-failure:
  xmmap(): drop "Out of memory?"
  config.c: rewrite ENODEV into EISDIR when mmap fails
  config.c: avoid xmmap error messages
  config.c: fix mmap leak when writing config
  read-cache.c: drop PROT_WRITE from mmap of index
config.c
git-compat-util.h
read-cache.c
sha1_file.c