summaryrefslogtreecommitdiff
path: root/ls-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'ls-tree.c')
-rw-r--r--ls-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ls-tree.c b/ls-tree.c
index bd99f9a..d2ab02e 100644
--- a/ls-tree.c
+++ b/ls-tree.c
@@ -73,7 +73,7 @@ static int list(unsigned char *sha1)
void *buffer;
unsigned long size;
- buffer = read_tree_with_tree_or_commit_sha1(sha1, &size, 0);
+ buffer = read_object_with_reference(sha1, "tree", &size, 0);
if (!buffer)
die("unable to read sha1 file");
list_recursive(buffer, "tree", size, NULL);