summaryrefslogtreecommitdiffstats
path: root/read-cache.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-08-13 03:34:36 +0200
committerJunio C Hamano <junkio@cox.net>2006-08-13 03:35:14 +0200
commiteed94a570e0421175d6b4342c0ac48e03ceedf0b (patch)
treef33864f2abffdcb83cbf626b26da34f9cc8d5bab /read-cache.c
parentdiscard_cache(): discard index, even if no file was mmap()ed (diff)
parentGIT 1.4.2 (diff)
downloadgit-eed94a570e0421175d6b4342c0ac48e03ceedf0b.tar.xz
git-eed94a570e0421175d6b4342c0ac48e03ceedf0b.zip
Merge branch 'master' into js/c-merge-recursive
Adjust to hold_lock_file_for_update() change on the master.
Diffstat (limited to 'read-cache.c')
-rw-r--r--read-cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/read-cache.c b/read-cache.c
index fc2af2cb04..c575edac49 100644
--- a/read-cache.c
+++ b/read-cache.c
@@ -61,7 +61,7 @@ static int ce_compare_data(struct cache_entry *ce, struct stat *st)
unsigned char sha1[20];
if (!index_fd(sha1, fd, st, 0, NULL))
match = memcmp(sha1, ce->sha1, 20);
- close(fd);
+ /* index_fd() closed the file descriptor already */
}
return match;
}