aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorVarun Naik <vcnaik94@gmail.com>2019-07-13 20:01:53 -0700
committerJunio C Hamano <gitster@pobox.com>2019-07-14 15:22:29 -0700
commit02638d1e1153eb89d51a72de51ad854a88c9a178 (patch)
treea7088f78e1e48ec38c3830041fd43ba6da2040da /builtin/commit.c
parentGit 2.22 (diff)
downloadgit-02638d1e1153eb89d51a72de51ad854a88c9a178.tar.gz
git-02638d1e1153eb89d51a72de51ad854a88c9a178.zip
read-cache.c: do not die if mmap fails
do_read_index() mmaps the index, or tries to die with an error message on failure. It should call xmmap_gently(), which returns MAP_FAILED, rather than xmmap(), which dies with its own error message. An easy way to cause this mmap to fail is by setting $GIT_INDEX_FILE to a path to a directory and then invoking any command that reads from the index. Signed-off-by: Varun Naik <vcnaik94@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions