diff --git a/read-cache.c b/read-cache.c
index b97b5668ebc486561686d3e80b536e115dede513..98d526bd48d2a0e764dd0efb4c6efe4965174c9a 100644 (file)
--- a/read-cache.c
+++ b/read-cache.c
if (fd >= 0) {
unsigned char sha1[20];
- if (!index_fd(sha1, fd, st, 0, OBJ_BLOB, ce->name))
+ if (!index_fd(sha1, fd, st, 0, OBJ_BLOB, ce->name, 0))
match = hashcmp(sha1, ce->sha1);
/* index_fd() closed the file descriptor already */
}