]> Kevux Git Server - rit/commit
builtin/fsck: stop using `the_repository` when snapshotting refs
authorPatrick Steinhardt <ps@pks.im>
Mon, 23 Mar 2026 15:02:57 +0000 (16:02 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 23 Mar 2026 15:33:10 +0000 (08:33 -0700)
commit4c44db7dc55c1aac0d0414ed22c27ea965cc2c77
tree4975bbe2c7eeea58e53c80652abc985e600ac845
parentda3ead3ee3a27df391932379b0b7283f2b17729f
builtin/fsck: stop using `the_repository` when snapshotting refs

We depedn on `the_repository` when snapshotting refs. Refactor this to
use a context-provided repository instead that is injected via the
`struct snapshot_ref_data`.

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