diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-03-23 16:02:52 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-03-23 08:33:09 -0700 |
| commit | 17cabd369b5cb96bee9577f49247ef95d07058a7 (patch) | |
| tree | 0b075f9e24209e57e98e3b21cb81c8f4a274b86b /builtin | |
| parent | ca1db8a0f7dc0dbea892e99f5b37c5fe5861be71 (diff) | |
| download | git-17cabd369b5cb96bee9577f49247ef95d07058a7.tar.xz | |
fetch-pack: move fsck options into function scope
When fetching a packfile, we optionally verify received objects via the
fsck subsystem. The options for those consistency checks are declared in
global scope without a good reason, and they are never cleaned up. So in
case the options are reused, they may accumulate more state over time.
Furthermore, in subsequent changes we'll introduce a repository pointer
into the structure. Obviously though, we don't have a repository
available at static time, except for `the_repository`, which we don't
want to use here.
Refactor the code to move the options into the respective functions and
properly manage their lifecycle.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions
