diff rhodecode/lib/utils.py @ 1196:49ea527452d3 beta

fixes for issue #148
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 02 Apr 2011 00:55:26 +0200
parents bc3dafd0e24c
children 6832ef664673
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