]> git.ipfire.org Git - thirdparty/git.git/commit
builtin/fsck: stop using `the_repository` when checking reflogs
authorPatrick Steinhardt <ps@pks.im>
Mon, 23 Mar 2026 15:02:59 +0000 (16:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 15:33:10 +0000 (08:33 -0700)
commit38e09ebfd444f04e7282e5a7109edb6800864d41
tree51d00ba2531b1bd6c97d0637bfc12360def99a4a
parent3ea779432d28b0229ef2a64e6a73a9018ad4c940
builtin/fsck: stop using `the_repository` when checking reflogs

We implicitly rely on `the_repository` when checking reflogs. Refactor
this to instead inject the repository via the callback payload.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c