Skip to content

Commit

Permalink
1.6.1dev: fix // entry listed wrongly in the autocomplete menu in d…
Browse files Browse the repository at this point in the history
…iff 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
  • Loading branch information
jomae committed Oct 28, 2024
1 parent 84b44ab commit 0814f4a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trac/versioncontrol/web_ui/changeset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 0814f4a

Please sign in to comment.