Skip to content

Commit cf98fc4

Browse files
dschoGit for Windows Build Agent
authored andcommitted
fixup??? survey: summarize total sizes by object type
More `odb` refactoring. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 1cb8ac8 commit cf98fc4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

builtin/survey.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,8 +711,9 @@ static void increment_totals(struct survey_context *ctx,
711711
oi.sizep = &object_length;
712712
oi.disk_sizep = &disk_sizep;
713713

714-
if (oid_object_info_extended(ctx->repo, &oids->oid[i],
715-
&oi, oi_flags) < 0) {
714+
if (odb_read_object_info_extended(ctx->repo->objects,
715+
&oids->oid[i], &oi,
716+
oi_flags) < 0) {
716717
summary->num_missing++;
717718
} else {
718719
summary->nr++;

0 commit comments

Comments
 (0)