]> Kevux Git Server - rit/commit
serve: stop using `the_repository`
authorPatrick Steinhardt <ps@pks.im>
Tue, 17 Dec 2024 06:43:51 +0000 (07:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Dec 2024 18:44:30 +0000 (10:44 -0800)
commit395b584b5751b009d657d8c3aed371f2a233d919
treec53b4f9175acf90a8ce96f6ec90348316e6da5ea
parentbd0c0fb790dcb6cd32a585e1d9fcb0a4a4f7379b
serve: stop using `the_repository`

Stop using `the_repository` in the "serve" subsystem by passing in a
repository when advertising capabilities or serving requests.

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/upload-pack.c
serve.c
serve.h
t/helper/test-serve-v2.c