cat-file: split batch "buf" into two variables
[gitweb.git] / builtin / merge-base.c
index bbead6f33e5c5449da3ff02b98b7c2ab993a54b7..08d91b1f0c0172fef93f1a87bf0843a85f57ca37 100644 (file)
@@ -124,7 +124,7 @@ static void add_one_commit(struct object_id *oid, struct rev_collect *revs)
        if (is_null_oid(oid))
                return;
 
-       commit = lookup_commit(oid);
+       commit = lookup_commit(the_repository, oid);
        if (!commit ||
            (commit->object.flags & TMP_MARK) ||
            parse_commit(commit))