treewide: replace maybe_tree with accessor methods
[gitweb.git] / ref-filter.c
index a59654cfd372dbe097cc3daa22e0c87af046bfa1..cffd8bf3ce72abfcc9ef9ca1fa3f968c69539695 100644 (file)
@@ -815,7 +815,7 @@ static void grab_commit_values(struct atom_value *val, int deref, struct object
                if (deref)
                        name++;
                if (!strcmp(name, "tree")) {
-                       v->s = xstrdup(oid_to_hex(&commit->maybe_tree->object.oid));
+                       v->s = xstrdup(oid_to_hex(get_commit_tree_oid(commit)));
                }
                else if (!strcmp(name, "numparent")) {
                        v->value = commit_list_count(commit->parents);