commit: add repository argument to lookup_commit_reference_gently
[git/git.git] / sha1-name.c
index dd19aba..4736118 100644 (file)
@@ -1251,13 +1251,13 @@ int get_oid_mb(const char *name, struct object_id *oid)
        }
        if (st)
                return st;
        }
        if (st)
                return st;
-       one = lookup_commit_reference_gently(&oid_tmp, 0);
+       one = lookup_commit_reference_gently(the_repository, &oid_tmp, 0);
        if (!one)
                return -1;
 
        if (get_oid_committish(dots[3] ? (dots + 3) : "HEAD", &oid_tmp))
                return -1;
        if (!one)
                return -1;
 
        if (get_oid_committish(dots[3] ? (dots + 3) : "HEAD", &oid_tmp))
                return -1;
-       two = lookup_commit_reference_gently(&oid_tmp, 0);
+       two = lookup_commit_reference_gently(the_repository, &oid_tmp, 0);
        if (!two)
                return -1;
        mbs = get_merge_bases(one, two);
        if (!two)
                return -1;
        mbs = get_merge_bases(one, two);