aboutsummaryrefslogtreecommitdiffstats
path: root/object-file.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-07-17 06:56:32 +0200
committerJunio C Hamano <gitster@pobox.com>2025-07-16 22:16:14 -0700
commit1efe0aeaa2e10766abe9bf05e2e1a014251ba4e2 (patch)
tree481a8252fa736b55cd92fc96423f4089b81ea939 /object-file.c
parentobject-file: get rid of `the_repository` when freshening objects (diff)
downloadgit-1efe0aeaa2e10766abe9bf05e2e1a014251ba4e2.tar.gz
git-1efe0aeaa2e10766abe9bf05e2e1a014251ba4e2.zip
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>
Diffstat (limited to 'object-file.c')
-rw-r--r--object-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object-file.c b/object-file.c
index 3453989b7e..800eeae85a 100644
--- a/object-file.c
+++ b/object-file.c
@@ -421,7 +421,7 @@ int loose_object_info(struct repository *r,
enum object_type type_scratch;
if (oi->delta_base_oid)
- oidclr(oi->delta_base_oid, the_repository->hash_algo);
+ oidclr(oi->delta_base_oid, r->hash_algo);
/*
* If we don't care about type or size, then we don't