Git fork

object-file: get rid of `the_repository` in `loose_object_info()`

While `loose_object_info()` already accepts a repository as parameter we
still have one callsite in there where we use `the_repository` to figure
out the hash algorithm. Use the passed-in repository instead.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Patrick Steinhardt and committed by
Junio C Hamano
1efe0aea 1031f576

+1 -1
+1 -1
object-file.c
··· 421 421 enum object_type type_scratch; 422 422 423 423 if (oi->delta_base_oid) 424 - oidclr(oi->delta_base_oid, the_repository->hash_algo); 424 + oidclr(oi->delta_base_oid, r->hash_algo); 425 425 426 426 /* 427 427 * If we don't care about type or size, then we don't