summaryrefslogtreecommitdiff
path: root/t/helper/test-cache-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 't/helper/test-cache-tree.c')
-rw-r--r--t/helper/test-cache-tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/helper/test-cache-tree.c b/t/helper/test-cache-tree.c
index 93051b25f5..5514afdfe7 100644
--- a/t/helper/test-cache-tree.c
+++ b/t/helper/test-cache-tree.c
@@ -30,7 +30,7 @@ int cmd__cache_tree(int argc, const char **argv)
argc = parse_options(argc, argv, NULL, options, test_cache_tree_usage, 0);
- if (read_cache() < 0)
+ if (repo_read_index(the_repository) < 0)
die(_("unable to read index file"));
oidcpy(&oid, &the_index.cache_tree->oid);