tree.c: make read_tree*() take 'struct repository *'
[gitweb.git] / builtin / checkout.c
index acdafc6e4c4d104aadcbe7492a8045e16e83ba50..c9dda8e82e8ed2a88b93a80c729a5971b9e6a139 100644 (file)
@@ -115,7 +115,8 @@ static int update_some(const struct object_id *oid, struct strbuf *base,
 
 static int read_tree_some(struct tree *tree, const struct pathspec *pathspec)
 {
-       read_tree_recursive(tree, "", 0, 0, pathspec, update_some, NULL);
+       read_tree_recursive(the_repository, tree, "", 0, 0,
+                           pathspec, update_some, NULL);
 
        /* update the index with the given tree's info
         * for all args, expanding wildcards, and exit