From b13a99f24c51c2ecc3e49b3061ea7eed182d9c1a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 16 Oct 2026 06:09:01 -1000 Subject: Keep a repository with an empty url ignored The field resets at the end of cgit_add_repo cleared the ignore flag that the empty url branch had just set, so such a repository was listed on the index and selectable with ?r=, where every link to it read the byte before its url. --- source/shared.c | 1 - 1 file changed, 1 deletion(-) (limited to 'source') diff --git a/source/shared.c b/source/shared.c index b68cbbf..befd3e5 100644 --- a/source/shared.c +++ b/source/shared.c @@ -261,7 +261,6 @@ struct cgit_repo *cgit_add_repo(const char *url) repo->trailer_filter = ctx.cfg.trailer_filter; repo->clone_url = ctx.cfg.clone_url; repo->submodules.strdup_strings = 1; - repo->hide = repo->ignore = 0; return repo; } -- cgit