Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
block-sha1: split the different "hacks" to be individually selected
[gitweb.git]
/
read-cache.c
diff --git
a/read-cache.c
b/read-cache.c
index f76b5bb2e13a06fbc393a2344f0310ee5e702594..4e3e272ee409de66de2059a8be475fddcaa4dc28 100644
(file)
--- a/
read-cache.c
+++ b/
read-cache.c
@@
-1265,7
+1265,7
@@
int read_index_from(struct index_state *istate, const char *path)
mmap = xmmap(NULL, mmap_size, PROT_READ | PROT_WRITE, MAP_PRIVATE, fd, 0);
close(fd);
if (mmap == MAP_FAILED)
- die("unable to map index file");
+ die
_errno
("unable to map index file");
hdr = mmap;
if (verify_hdr(hdr, mmap_size) < 0)