]> git.ipfire.org Git - thirdparty/git.git/commit
server-info: stop using `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 17 Dec 2024 06:43:53 +0000 (07:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Dec 2024 18:44:30 +0000 (10:44 -0800)
commitc365dbb44ec81fc60e9b7666a4384f8649d80b2a
tree7bc9bb3ba7e07e2cf5980965539b2c403ba656ab
parent5ee907bb3f12c630f78554ea9b4c605f4e1a5e92
server-info: stop using `the_repository`

Stop using `the_repository` in the "server-info" subsystem by passing in
a repository when updating server info and storing the repository in the
`update_info_ctx` structure to make it accessible to other functions.

Adjust callers accordingly by using `the_repository`. While there may be
some callers that have a repository available in their context, this
trivial conversion allows for easier verification and bubbles up the use
of `the_repository` by one level.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
builtin/repack.c
builtin/update-server-info.c
server-info.c
server-info.h