diff: convert diff_change to struct object_id
[gitweb.git] / builtin / ls-tree.c
index 5baac3ef2fa5d3d9ebabd2dd699f89e0d3115846..ee7b293b11eb5c73dd6fe1ea31c5d3bf52c79656 100644 (file)
@@ -180,7 +180,7 @@ int cmd_ls_tree(int argc, const char **argv, const char *prefix)
        for (i = 0; i < pathspec.nr; i++)
                pathspec.items[i].nowildcard_len = pathspec.items[i].len;
        pathspec.has_wildcard = 0;
-       tree = parse_tree_indirect(oid.hash);
+       tree = parse_tree_indirect(&oid);
        if (!tree)
                die("not a tree object");
        return !!read_tree_recursive(tree, "", 0, 0, &pathspec, show_tree, NULL);