]> git.ipfire.org Git - thirdparty/git.git/commit
fsck: use local repository
authorDerrick Stolee <derrickstolee@github.com>
Tue, 2 May 2023 13:27:22 +0000 (13:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 2 May 2023 15:48:23 +0000 (08:48 -0700)
commitcf9cd8b55c55794cc5eb38a157855f1ca2edd5ab
tree6f23d06e24f04657cfb860b170e9662d962c8157
parent756f1bcd29a711075cbaecb02c923328e86a41a4
fsck: use local repository

In 0d30feef3c5 (fsck: create scaffolding for rev-index checks,
2023-04-17) and later 5a6072f631d (fsck: validate .rev file header,
2023-04-17), the check_pack_rev_indexes() method was created with a
'struct repository *r' parameter. However, this parameter was unused and
instead 'the_repository' was used in its place.

Fix this situation with the obvious replacement.

Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fsck.c