packfile: add repository argument to cache_or_unpack_entry
[gitweb.git] / sequencer.c
index 667f35ebdffbc1ef730e310cbea9b3dbce786e21..44f0518b9c4d5d11dcab3a2177015837c1cdab1c 100644 (file)
@@ -2876,7 +2876,8 @@ int sequencer_pick_revisions(struct replay_opts *opts)
 
                if (!get_oid(name, &oid)) {
                        if (!lookup_commit_reference_gently(&oid, 1)) {
-                               enum object_type type = oid_object_info(&oid,
+                               enum object_type type = oid_object_info(the_repository,
+                                                                       &oid,
                                                                        NULL);
                                return error(_("%s: can't cherry-pick a %s"),
                                        name, type_name(type));