# HG changeset patch # User Marcin Kuzminski # Date 2013-03-04 17:44:36 # Node ID d778ed1c945fbe362fcb4961b22785b7fe0504e9 # Parent 151a83be8ad5698ea0cc0cacbea7425b24c2fa68 use password obfuscate in when clonning a remote repo with credentials diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py --- a/rhodecode/model/repo.py +++ b/rhodecode/model/repo.py @@ -32,7 +32,7 @@ from datetime import datetime from rhodecode.lib.vcs.backends import get_backend from rhodecode.lib.compat import json from rhodecode.lib.utils2 import LazyProperty, safe_str, safe_unicode,\ - remove_prefix + remove_prefix, obfuscate_url_pw from rhodecode.lib.caching_query import FromCache from rhodecode.lib.hooks import log_create_repository, log_delete_repository @@ -42,8 +42,6 @@ from rhodecode.model.db import Repositor RhodeCodeSetting, RepositoryField from rhodecode.lib import helpers as h from rhodecode.lib.auth import HasRepoPermissionAny -from rhodecode.lib.vcs.backends.base import EmptyChangeset - log = logging.getLogger(__name__) @@ -640,7 +638,8 @@ class RepoModel(BaseModel): raise Exception('This path %s is a valid group' % repo_path) log.info('creating repo %s in %s @ %s' % ( - repo_name, safe_unicode(repo_path), clone_uri + repo_name, safe_unicode(repo_path), + obfuscate_url_pw(clone_uri) ) ) backend = get_backend(alias)