alloc: allow arbitrary repositories for alloc functions
[gitweb.git] / list-objects-filter.c
index 4356c45368e10bd7f41e15f91130dbfd3e4e9281..ea94fe8af28d00763f57483e9d8a53dd6197105f 100644 (file)
@@ -117,7 +117,7 @@ static enum list_objects_filter_result filter_blobs_limit(
                assert(obj->type == OBJ_BLOB);
                assert((obj->flags & SEEN) == 0);
 
-               t = sha1_object_info(obj->oid.hash, &object_length);
+               t = oid_object_info(the_repository, &obj->oid, &object_length);
                if (t != OBJ_BLOB) { /* probably OBJ_NONE */
                        /*
                         * We DO NOT have the blob locally, so we cannot