aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-03-04 18:44:36 +0100
committerMarcin Kuzminski <marcin@python-works.com>2013-03-04 18:44:36 +0100
commit65a1c5b7f8d508b20b720f67fcbfd47b7e08729b (patch)
treec93da3d4ab74806d15e0f7af0f468904a419f299
parent6eeb175132f510c91f36145e8cb4fc7aa01ebfb7 (diff)
use password obfuscate in when clonning a remote repo with credentials
--HG-- extra : source : d778ed1c945fbe362fcb4961b22785b7fe0504e9
-rw-r--r--rhodecode/model/repo.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/rhodecode/model/repo.py b/rhodecode/model/repo.py
index 18db88ce..edbbd180 100644
--- 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
@@ -43,7 +43,6 @@ from rhodecode.model.db import Repository, UserRepoToPerm, User, Permission, \
from rhodecode.lib import helpers as h
from rhodecode.lib.auth import HasRepoPermissionAny
-
log = logging.getLogger(__name__)
@@ -624,7 +623,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)