Commit 803a6b4d418c4b2d7463bf23a86a09cb2359ec98

Ramsay Jones 2010-01-03T19:12:05

Save the git_file in the gitfo_cache when enabling caching Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/fileops.c b/src/fileops.c
index b2dea1e..d1621f2 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);