tag: add repository argument to parse_tag_buffer
[gitweb.git] / tree.c
diff --git a/tree.c b/tree.c
index 12b69606ab0dafc90ea139e9b0191581cb788b8e..45e89ff08ebdb57b0f3c501993741c7b01ccf32b 100644 (file)
--- a/tree.c
+++ b/tree.c
@@ -101,7 +101,7 @@ static int read_tree_1(struct tree *tree, struct strbuf *base,
                else if (S_ISGITLINK(entry.mode)) {
                        struct commit *commit;
 
-                       commit = lookup_commit(entry.oid);
+                       commit = lookup_commit(the_repository, entry.oid);
                        if (!commit)
                                die("Commit %s in submodule path %s%s not found",
                                    oid_to_hex(entry.oid),