diff options
Diffstat (limited to 'rerere.c')
| -rw-r--r-- | rerere.c | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -1,5 +1,9 @@ -#include "cache.h" +#include "git-compat-util.h" +#include "abspath.h" +#include "alloc.h" #include "config.h" +#include "gettext.h" +#include "hex.h" #include "lockfile.h" #include "string-list.h" #include "rerere.h" @@ -12,6 +16,7 @@ #include "object-store.h" #include "hash-lookup.h" #include "strmap.h" +#include "wrapper.h" #define RESOLVED 0 #define PUNTED 1 @@ -965,8 +970,9 @@ static int handle_cache(struct index_state *istate, break; i = ce_stage(ce) - 1; if (!mmfile[i].ptr) { - mmfile[i].ptr = read_object_file(&ce->oid, &type, - &size); + mmfile[i].ptr = repo_read_object_file(the_repository, + &ce->oid, &type, + &size); mmfile[i].size = size; } } |
