fix wrong directory content in source browser

This commit is contained in:
Sebastian Sdorra
2012-07-26 08:31:03 +02:00
parent 374aa7fec0
commit d3bc1ed40e

View File

@@ -116,8 +116,12 @@ def collectFiles(repo, revCtx, files, directories):
paths.append(f)
else:
length = len(path.split('/')) + 1
directory = path
if not directory.endswith('/'):
directory += '/'
for f in mf:
if f.startswith(path):
if f.startswith(directory):
paths.append(f)
for p in paths: