packfile: add repository argument to cache_or_unpack_entry
[gitweb.git] / builtin / fetch.c
index dcdfc66f09af70c4b8e3c08a99c80202be7b4e68..73be393b2eaa37aa0831b7c5b767569b6deb3cc0 100644 (file)
@@ -637,7 +637,7 @@ static int update_local_ref(struct ref *ref,
        struct branch *current_branch = branch_get(NULL);
        const char *pretty_ref = prettify_refname(ref->name);
 
-       type = oid_object_info(&ref->new_oid, NULL);
+       type = oid_object_info(the_repository, &ref->new_oid, NULL);
        if (type < 0)
                die(_("object %s not found"), oid_to_hex(&ref->new_oid));