http-push: convert some static functions to struct object_id
[gitweb.git] / revision.c
index 7ff61ff5f73db07af522ac57d62ed9e699aedf72..2b56c3baf07980a9ee50eac0394bc64c83c5508c 100644 (file)
@@ -1249,7 +1249,7 @@ static void add_cache_tree(struct cache_tree *it, struct rev_info *revs,
        int i;
 
        if (it->entry_count >= 0) {
-               struct tree *tree = lookup_tree(it->sha1);
+               struct tree *tree = lookup_tree(it->oid.hash);
                add_pending_object_with_path(revs, &tree->object, "",
                                             040000, path->buf);
        }