From: Derrick Stolee via GitGitGadget Date: Mon, 12 Dec 2022 17:33:25 GMT Subject: [PATCH 2/3] bundle-uri: advertise based on repo config Message-ID: <857d1abec4cf124e011c7f84276ce105cb5b3a96.1670866407.git.gitgitgadget@gmail.com> In-Reply-To: From: Derrick Stolee The bundle_uri_advertise() method was not using its repository parameter, but this is a mistake. Use repo_config_get_maybe_bool() instead of git_config_maybe_bool(). Signed-off-by: Derrick Stolee --- bundle-uri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundle-uri.c b/bundle-uri.c index 8efb4e7acad..5f158cc52e1 100644 --- a/bundle-uri.c +++ b/bundle-uri.c @@ -610,7 +610,7 @@ int bundle_uri_advertise(struct repository *r, struct strbuf *value) goto cached; advertise_bundle_uri = 0; - git_config_get_maybe_bool("uploadpack.advertisebundleuris", &advertise_bundle_uri); + repo_config_get_maybe_bool(r, "uploadpack.advertisebundleuris", &advertise_bundle_uri); cached: return advertise_bundle_uri; -- gitgitgadget