aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.c
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-08 00:44:31 +0000
committersaturneric <[email protected]>2025-11-08 00:44:31 +0000
commitb192054eac3f0e67339cfd9f12efb45eb9e12ef6 (patch)
treea2134427440d4a2782cc6b35d60bf031b1a5fec8 /cgit.c
parentchore(submodules): update `git` submodule URL (diff)
downloadcgit-b192054eac3f0e67339cfd9f12efb45eb9e12ef6.tar.gz
cgit-b192054eac3f0e67339cfd9f12efb45eb9e12ef6.zip
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.
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c5
1 files changed, 5 insertions, 0 deletions
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();
}