commit: add repository argument to lookup_commit
[git/git.git] / tag.c
diff --git a/tag.c b/tag.c
index 3101021..5dcdf7b 100644 (file)
--- a/tag.c
+++ b/tag.c
@@ -158,7 +158,7 @@ int parse_tag_buffer(struct tag *item, const void *data, unsigned long size)
        } else if (!strcmp(type, tree_type)) {
                item->tagged = (struct object *)lookup_tree(the_repository, &oid);
        } else if (!strcmp(type, commit_type)) {
-               item->tagged = (struct object *)lookup_commit(&oid);
+               item->tagged = (struct object *)lookup_commit(the_repository, &oid);
        } else if (!strcmp(type, tag_type)) {
                item->tagged = (struct object *)lookup_tag(&oid);
        } else {