#include "cache.h"
#include "walker.h"
+#include "object-store.h"
#include "commit.h"
#include "tree.h"
#include "tree-walk.h"
walker_say(walker, "walk %s\n", oid_to_hex(&commit->object.oid));
- if (process(walker, &commit->tree->object))
+ if (process(walker, &get_commit_tree(commit)->object))
return -1;
for (parents = commit->parents; parents; parents = parents->next) {