]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/show-branch.c
commit: add repository argument to lookup_commit_reference_gently
[thirdparty/git.git] / builtin / show-branch.c
index f2e985c00abd2e6f7aa1eaa1c9368f4c3ada60ab..2456b47d344ddb05ac1c6406b6dd574925c88c15 100644 (file)
@@ -378,7 +378,8 @@ static void sort_ref_range(int bottom, int top)
 static int append_ref(const char *refname, const struct object_id *oid,
                      int allow_dups)
 {
-       struct commit *commit = lookup_commit_reference_gently(oid, 1);
+       struct commit *commit = lookup_commit_reference_gently(the_repository,
+                                                              oid, 1);
        int i;
 
        if (!commit)