tag: add repository argument to deref_tag
[gitweb.git] / commit.c
index 9e2899bd5ad62a2402312599940f5aceeb5e658b..aa5557dee847a1c1d1de0c7827c80794c74b6652 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -27,7 +27,8 @@ const char *commit_type = "commit";
 struct commit *lookup_commit_reference_gently_the_repository(
                const struct object_id *oid, int quiet)
 {
-       struct object *obj = deref_tag(parse_object(the_repository, oid),
+       struct object *obj = deref_tag(the_repository,
+                                      parse_object(the_repository, oid),
                                       NULL, 0);
 
        if (!obj)