commit: add repository argument to lookup_commit_reference_gently
[git/git.git] / sequencer.c
index 4cf7afb..b4170b7 100644 (file)
@@ -3610,7 +3610,7 @@ int sequencer_pick_revisions(struct replay_opts *opts)
                        continue;
 
                if (!get_oid(name, &oid)) {
-                       if (!lookup_commit_reference_gently(&oid, 1)) {
+                       if (!lookup_commit_reference_gently(the_repository, &oid, 1)) {
                                enum object_type type = oid_object_info(the_repository,
                                                                        &oid,
                                                                        NULL);