commit: add generation number to struct commit
[gitweb.git] / walker.c
index dffb9c8e37c220e71e108060dc5a81bc21f8370c..f51b8558723354aad4dbfeb7764baa97893f6c1c 100644 (file)
--- a/walker.c
+++ b/walker.c
@@ -87,7 +87,7 @@ static int process_commit(struct walker *walker, struct commit *commit)
        walker_say(walker, "walk %s\n", oid_to_hex(&commit->object.oid));
 
        if (walker->get_tree) {
-               if (process(walker, &commit->tree->object))
+               if (process(walker, &get_commit_tree(commit)->object))
                        return -1;
                if (!walker->get_all)
                        walker->get_tree = 0;