changeset 1196:49ea527452d3 beta

fixes for issue #148
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 02 Apr 2011 00:55:26 +0200
parents 74251f8004d2
children 376411bf318e
files rhodecode/lib/utils.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/lib/utils.py	Sat Apr 02 00:44:13 2011 +0200
+++ b/rhodecode/lib/utils.py	Sat Apr 02 00:55:26 2011 +0200
@@ -165,7 +165,7 @@
             cur_path = os.path.join(p, dirpath)
             try:
                 scm_info = get_scm(cur_path)
-                yield scm_info[1].split(path)[-1].lstrip('/'), scm_info
+                yield scm_info[1].split(path)[-1].lstrip(os.sep), scm_info
             except VCSError:
                 if not recursive:
                     continue