X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=diff-tree.c;h=d1265d796388dd1c1a56c00f793893ee9dc6ed10;hb=fc4c4cd21c783b6dc387002c6e018d26f7405e9f;hp=f55a35a9d5f9ae4e3f7d3fd778a953cc9cc533ad;hpb=d9ad59e7636d98daa6131e9fd2cb2b4f5745a853;p=git.git diff --git a/diff-tree.c b/diff-tree.c index f55a35a9..d1265d79 100644 --- a/diff-tree.c +++ b/diff-tree.c @@ -52,7 +52,7 @@ static int diff_root_tree(const unsigned char *new, const char *base) void *tree; struct tree_desc empty, real; - tree = read_object_with_reference(new, "tree", &real.size, NULL); + tree = read_object_with_reference(new, tree_type, &real.size, NULL); if (!tree) die("unable to read root tree (%s)", sha1_to_hex(new)); real.buf = tree;