treewide: replace maybe_tree with accessor methods
[gitweb.git] / commit-graph.c
index 49c622c5569f53edcc94e591892191067629a0a6..264aa6d919bc3df71d189ff5fbddfc46231499f9 100644 (file)
@@ -369,7 +369,7 @@ static void write_graph_chunk_data(struct hashfile *f, int hash_len,
                uint32_t packedDate[2];
 
                parse_commit(*list);
-               hashwrite(f, (*list)->maybe_tree->object.oid.hash, hash_len);
+               hashwrite(f, get_commit_tree_oid(*list)->hash, hash_len);
 
                parent = (*list)->parents;