--- a/mercurial/hgweb/hgwebdir_mod.py Mon Jul 22 16:49:38 2024 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py Tue Jul 23 10:02:46 2024 +0200
@@ -120,6 +120,7 @@
seenrepos = set()
seendirs = set()
for name, path in repos:
+
if not name.startswith(subdir):
continue
name = name[len(subdir) :]