##// END OF EJS Templates
use password obfuscate in when clonning a remote repo with credentials
marcink -
r3452:d778ed1c beta
parent child Browse files
Show More
@@ -32,7 +32,7 b' from datetime import datetime'
32 from rhodecode.lib.vcs.backends import get_backend
32 from rhodecode.lib.vcs.backends import get_backend
33 from rhodecode.lib.compat import json
33 from rhodecode.lib.compat import json
34 from rhodecode.lib.utils2 import LazyProperty, safe_str, safe_unicode,\
34 from rhodecode.lib.utils2 import LazyProperty, safe_str, safe_unicode,\
35 remove_prefix
35 remove_prefix, obfuscate_url_pw
36 from rhodecode.lib.caching_query import FromCache
36 from rhodecode.lib.caching_query import FromCache
37 from rhodecode.lib.hooks import log_create_repository, log_delete_repository
37 from rhodecode.lib.hooks import log_create_repository, log_delete_repository
38
38
@@ -42,8 +42,6 b' from rhodecode.model.db import Repositor'
42 RhodeCodeSetting, RepositoryField
42 RhodeCodeSetting, RepositoryField
43 from rhodecode.lib import helpers as h
43 from rhodecode.lib import helpers as h
44 from rhodecode.lib.auth import HasRepoPermissionAny
44 from rhodecode.lib.auth import HasRepoPermissionAny
45 from rhodecode.lib.vcs.backends.base import EmptyChangeset
46
47
45
48 log = logging.getLogger(__name__)
46 log = logging.getLogger(__name__)
49
47
@@ -640,7 +638,8 b' class RepoModel(BaseModel):'
640 raise Exception('This path %s is a valid group' % repo_path)
638 raise Exception('This path %s is a valid group' % repo_path)
641
639
642 log.info('creating repo %s in %s @ %s' % (
640 log.info('creating repo %s in %s @ %s' % (
643 repo_name, safe_unicode(repo_path), clone_uri
641 repo_name, safe_unicode(repo_path),
642 obfuscate_url_pw(clone_uri)
644 )
643 )
645 )
644 )
646 backend = get_backend(alias)
645 backend = get_backend(alias)
General Comments 0
You need to be logged in to leave comments. Login now