]> git.proxmox.com Git - libgit2.git/commitdiff
Save the git_file in the gitfo_cache when enabling caching
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>
Sun, 3 Jan 2010 19:12:05 +0000 (19:12 +0000)
committerRamsay Jones <ramsay@ramsay1.demon.co.uk>
Wed, 20 Jan 2010 20:17:56 +0000 (20:17 +0000)
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
src/fileops.c

index b2dea1ed674386234946b2604df68d71b677d2c1..d1621f2e35b6db0d27cee8c6b1b03c2199d7dbd1 100644 (file)
@@ -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);