summaryrefslogtreecommitdiff
path: root/builtin/update-server-info.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-12-17 07:43:53 +0100
committerJunio C Hamano <gitster@pobox.com>2024-12-18 10:44:30 -0800
commitc365dbb44ec81fc60e9b7666a4384f8649d80b2a (patch)
tree7bc9bb3ba7e07e2cf5980965539b2c403ba656ab /builtin/update-server-info.c
parent5ee907bb3f12c630f78554ea9b4c605f4e1a5e92 (diff)
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>
Diffstat (limited to 'builtin/update-server-info.c')
-rw-r--r--builtin/update-server-info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/update-server-info.c b/builtin/update-server-info.c
index 6769611a02..47a3f0bdd9 100644
--- a/builtin/update-server-info.c
+++ b/builtin/update-server-info.c
@@ -27,5 +27,5 @@ int cmd_update_server_info(int argc,
if (argc > 0)
usage_with_options(update_server_info_usage, options);
- return !!update_server_info(force);
+ return !!update_server_info(the_repository, force);
}