# HG changeset patch # User Mads Kiilerich # Date 2016-06-10 01:19:58 # Node ID 70f8fba1f28a43b34c3405e99c41eed8c8f63dc7 # Parent f0cdd5efc8673902614e308e9d5a0e575649dab6 repos: fix unicode error when scanning and finding repositories with unicode names diff --git a/kallithea/lib/utils.py b/kallithea/lib/utils.py --- a/kallithea/lib/utils.py +++ b/kallithea/lib/utils.py @@ -215,7 +215,7 @@ def get_filesystem_repos(path, recursive """ # remove ending slash for better results - path = path.rstrip(os.sep) + path = safe_str(path.rstrip(os.sep)) log.debug('now scanning in %s location recursive:%s...', path, recursive) def _get_repos(p): @@ -233,7 +233,7 @@ def get_filesystem_repos(path, recursive if skip_removed_repos and REMOVED_REPO_PAT.match(dirpath): continue - #skip . dirs + #skip . dirs TODO: rly? then we should prevent creating them ... if dirpath.startswith('.'): continue