]> git.ipfire.org Git - thirdparty/git.git/blobdiff - fsck.c
commit: add repository argument to lookup_commit_graft
[thirdparty/git.git] / fsck.c
diff --git a/fsck.c b/fsck.c
index 59b0c7d640ec56713e36ec2bbf05543c912c89f7..104c3c0a4340e7b95f6499b5dd749ecab7947d61 100644 (file)
--- a/fsck.c
+++ b/fsck.c
@@ -738,7 +738,7 @@ static int fsck_commit_buffer(struct commit *commit, const char *buffer,
                buffer += 41;
                parent_line_count++;
        }
-       graft = lookup_commit_graft(&commit->object.oid);
+       graft = lookup_commit_graft(the_repository, &commit->object.oid);
        parent_count = commit_list_count(commit->parents);
        if (graft) {
                if (graft->nr_parent == -1 && !parent_count)