##// END OF EJS Templates
use password obfuscate in when clonning a remote repo with credentials
marcink -
r3471:d1004dd5 default
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
@@ -43,7 +43,6 b' from rhodecode.model.db import Repositor'
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
45
46
47 log = logging.getLogger(__name__)
46 log = logging.getLogger(__name__)
48
47
49
48
@@ -624,7 +623,8 b' class RepoModel(BaseModel):'
624 raise Exception('This path %s is a valid group' % repo_path)
623 raise Exception('This path %s is a valid group' % repo_path)
625
624
626 log.info('creating repo %s in %s @ %s' % (
625 log.info('creating repo %s in %s @ %s' % (
627 repo_name, safe_unicode(repo_path), clone_uri
626 repo_name, safe_unicode(repo_path),
627 obfuscate_url_pw(clone_uri)
628 )
628 )
629 )
629 )
630 backend = get_backend(alias)
630 backend = get_backend(alias)
General Comments 0
You need to be logged in to leave comments. Login now