##// END OF EJS Templates
backends: fix potential unicode problems on debug logging.
marcink -
r1146:df91b5ff default
parent child Browse files
Show More
@@ -43,11 +43,14 b' def get_vcs_instance(repo_path, *args, *'
43 for the path it returns None. Arguments and keyword arguments are passed
43 for the path it returns None. Arguments and keyword arguments are passed
44 to the vcs backend repository class.
44 to the vcs backend repository class.
45 """
45 """
46 from rhodecode.lib.utils2 import safe_str
47
46 explicit_vcs_alias = kwargs.pop('_vcs_alias', None)
48 explicit_vcs_alias = kwargs.pop('_vcs_alias', None)
47 try:
49 try:
48 vcs_alias = explicit_vcs_alias or get_scm(repo_path)[0]
50 vcs_alias = safe_str(explicit_vcs_alias or get_scm(repo_path)[0])
49 log.debug(
51 log.debug(
50 'Creating instance of %s repository from %s', vcs_alias, repo_path)
52 'Creating instance of %s repository from %s', vcs_alias,
53 safe_str(repo_path))
51 backend = get_backend(vcs_alias)
54 backend = get_backend(vcs_alias)
52
55
53 if explicit_vcs_alias:
56 if explicit_vcs_alias:
General Comments 0
You need to be logged in to leave comments. Login now