Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] Resurrect diff-tree-helper -R
[gitweb.git]
/
ls-tree.c
diff --git
a/ls-tree.c
b/ls-tree.c
index bd99f9ac7b2d6dc23c1ec7d8f03877c20afec63f..d2ab02e3484efaf851c50574e603c785d713bc87 100644
(file)
--- 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);