Commits

Sebastian Sdorra committed dff80c2

fix wrong directory content in source browser

Comments (0)

Files changed (1)

scm-plugins/scm-hg-plugin/src/main/resources/sonia/scm/python/filelog.py

       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: