Skip to content

Commit 1efe0ae

Browse files
pks-tgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1031f57 commit 1efe0ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

object-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ int loose_object_info(struct repository *r,
421421
enum object_type type_scratch;
422422

423423
if (oi->delta_base_oid)
424-
oidclr(oi->delta_base_oid, the_repository->hash_algo);
424+
oidclr(oi->delta_base_oid, r->hash_algo);
425425

426426
/*
427427
* If we don't care about type or size, then we don't

0 commit comments

Comments
 (0)