ref-filter: fix outdated comment on in_commit_list
[gitweb.git] / walker.c
index 1d5f3059a298411717b55ebe4275869b757468a9..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->maybe_tree->object))
+               if (process(walker, &get_commit_tree(commit)->object))
                        return -1;
                if (!walker->get_all)
                        walker->get_tree = 0;