t3600: clean up permissions test properly
[gitweb.git] / builtin / read-tree.c
index 92eff23e45cbfdb83eb8dbab72e1471923c9a201..6d45175f6aa054ba0a1260a0a7976d471658a276 100644 (file)
@@ -29,7 +29,7 @@ static int list_tree(struct object_id *oid)
 
        if (nr_trees >= MAX_UNPACK_TREES)
                die("I cannot read more than %d trees", MAX_UNPACK_TREES);
-       tree = parse_tree_indirect(oid->hash);
+       tree = parse_tree_indirect(oid);
        if (!tree)
                return -1;
        trees[nr_trees++] = tree;