diff options
| author | saturneric <[email protected]> | 2025-11-08 00:44:31 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-08 00:44:31 +0000 |
| commit | b192054eac3f0e67339cfd9f12efb45eb9e12ef6 (patch) | |
| tree | a2134427440d4a2782cc6b35d60bf031b1a5fec8 /cgit.c | |
| parent | chore(submodules): update `git` submodule URL (diff) | |
| download | cgit-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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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(); } |
