# HG changeset patch # User Marcin Kuzminski # Date 2012-01-06 04:39:54 # Node ID 445861e156d16a19884c9df73787af2e5a542894 # Parent 971ce5e20856d4d38d95622a367d11b8d7ddf1a0 normalize path using os.sep diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -152,12 +152,12 @@ def get_repos(path, recursive=False): """ Scans given path for repos and return (name,(type,path)) tuple - :param path: path to scann for repositories + :param path: path to scan for repositories :param recursive: recursive search and return names with subdirs in front """ # remove ending slash for better results - path = path.rstrip('/') + path = path.rstrip(os.sep) def _get_repos(p): if not os.access(p, os.W_OK):