From 803a6b4d418c4b2d7463bf23a86a09cb2359ec98 Mon Sep 17 00:00:00 2001 From: Ramsay Jones Date: Sun, 3 Jan 2010 19:12:05 +0000 Subject: [PATCH] Save the git_file in the gitfo_cache when enabling caching Signed-off-by: Ramsay Jones --- src/fileops.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/fileops.c b/src/fileops.c index b2dea1ed6..d1621f2e3 100644 --- a/src/fileops.c +++ b/src/fileops.c @@ -151,6 +151,7 @@ gitfo_cache *gitfo_enable_caching(git_file fd, size_t cache_size) if (!ioc) return NULL; + ioc->fd = fd; ioc->pos = 0; ioc->cache_size = cache_size; ioc->cache = git__malloc(cache_size);