From b192054eac3f0e67339cfd9f12efb45eb9e12ef6 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sat, 8 Nov 2025 00:44:31 +0000 Subject: fix(request): disable ambiguous refname warnings * Prevents warnings about ambiguous object references during request processing. * Relies on internal handling of such cases where necessary. * Improves user experience by avoiding unnecessary warning output. --- cgit.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cgit.c') diff --git a/cgit.c b/cgit.c index c70af55..def8731 100644 --- a/cgit.c +++ b/cgit.c @@ -761,6 +761,11 @@ static void process_request(void) if (ctx.repo && prepare_repo_cmd(nongit)) return; + /* Disable warning about ambiguous object refnames for the + * duration of the command, as we handle such cases ourselves + * where needed. */ + warn_on_object_refname_ambiguity = 0; + cmd->fn(); } -- cgit