Merge branch 'ms/core-icase-doc'
[gitweb.git] / walker.c
index 8eb7db7a52782c9862718979e5270724fd982d1f..86359ab0ab62990cf7097b0d59940f1f0b04fec5 100644 (file)
--- a/walker.c
+++ b/walker.c
@@ -1,5 +1,6 @@
 #include "cache.h"
 #include "walker.h"
+#include "object-store.h"
 #include "commit.h"
 #include "tree.h"
 #include "tree-walk.h"
@@ -88,7 +89,7 @@ static int process_commit(struct walker *walker, struct commit *commit)
 
        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) {