Zero indexer stats in pack objects

This commit is contained in:
Edward Thomson
2026-05-02 18:08:42 +01:00
parent 38a5767ec5
commit 509ac11975
2 changed files with 1 additions and 2 deletions

View File

@@ -931,7 +931,6 @@ int git_indexer_append(git_indexer *idx, const void *data, size_t size, git_inde
stats->local_objects = 0;
stats->total_deltas = 0;
stats->indexed_deltas = 0;
stats->received_bytes = 0;
if ((error = do_progress_callback(idx, stats)) != 0)
return error;

View File

@@ -1420,7 +1420,7 @@ int git_packbuilder_write(
git_str object_path = GIT_STR_INIT;
git_indexer_options opts = GIT_INDEXER_OPTIONS_INIT;
git_indexer *indexer = NULL;
git_indexer_progress stats;
git_indexer_progress stats = { 0 };
struct pack_write_context ctx;
int t;