Show More
@@ -43,11 +43,14 b' def get_vcs_instance(repo_path, *args, *' | |||
|
43 | 43 | for the path it returns None. Arguments and keyword arguments are passed |
|
44 | 44 | to the vcs backend repository class. |
|
45 | 45 | """ |
|
46 | from rhodecode.lib.utils2 import safe_str | |
|
47 | ||
|
46 | 48 | explicit_vcs_alias = kwargs.pop('_vcs_alias', None) |
|
47 | 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 | 51 | log.debug( |
|
50 |
'Creating instance of %s repository from %s', vcs_alias, |
|
|
52 | 'Creating instance of %s repository from %s', vcs_alias, | |
|
53 | safe_str(repo_path)) | |
|
51 | 54 | backend = get_backend(vcs_alias) |
|
52 | 55 | |
|
53 | 56 | if explicit_vcs_alias: |
General Comments 0
You need to be logged in to leave comments.
Login now