Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
tree.c: make read_tree*() take 'struct repository *'
[gitweb.git]
/
builtin
/
ls-tree.c
diff --git
a/builtin/ls-tree.c
b/builtin/ls-tree.c
index fe3b952cb3007d12c2e94a08b10486ed301c4769..6855f7fea56cb9cbceaad93afcfea3a8faf5da7e 100644
(file)
--- a/
builtin/ls-tree.c
+++ b/
builtin/ls-tree.c
@@
-185,5
+185,6
@@
int cmd_ls_tree(int argc, const char **argv, const char *prefix)
tree = parse_tree_indirect(&oid);
if (!tree)
die("not a tree object");
- return !!read_tree_recursive(tree, "", 0, 0, &pathspec, show_tree, NULL);
+ return !!read_tree_recursive(the_repository, tree, "", 0, 0,
+ &pathspec, show_tree, NULL);
}