From 0814f4ace065752aa704afdf3bd4429d03a825e1 Mon Sep 17 00:00:00 2001 From: jomae Date: Mon, 28 Oct 2024 08:32:41 +0000 Subject: [PATCH] 1.6.1dev: fix `//` entry listed wrongly in the autocomplete menu in diff view when the repository's name is configured to empty (refs #13802) git-svn-id: http://trac.edgewall.org/intertrac/log:/branches/1.6-stable@17865 af82e41b-90c4-0310-8c96-b1721e28e2e2 --- trac/versioncontrol/web_ui/changeset.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trac/versioncontrol/web_ui/changeset.py b/trac/versioncontrol/web_ui/changeset.py index 30fdc860e7..b17a22c50e 100644 --- a/trac/versioncontrol/web_ui/changeset.py +++ b/trac/versioncontrol/web_ui/changeset.py @@ -1189,7 +1189,8 @@ def kind_order(entry): if not reponame: entries.extend((True, repos.reponame, '/' + repos.reponame) for repos in rm.get_real_repositories() - if repos.is_viewable(req.perm)) + if repos.reponame and + repos.is_viewable(req.perm)) paths = [{'label': path + ('/' if isdir else ''), 'value': path, 'isdir': isdir}