caches: fix id sanitizer.
This commit is contained in:
parent
39e6e12be3
commit
94c141d6a4
1 changed files with 3 additions and 2 deletions
|
|
@ -185,9 +185,10 @@ class RemoteRepo(object):
|
|||
self.url = remote_maker.url
|
||||
self.stream_url = remote_maker.stream_url
|
||||
self._session = remote_maker._session_factory()
|
||||
|
||||
cache_repo_id = self._repo_id_sanitizer(repo_id)
|
||||
self._cache_region, self._cache_namespace = \
|
||||
remote_maker.init_cache_region(self._repo_id_sanitizer(cache_repo_id))
|
||||
remote_maker.init_cache_region(cache_repo_id)
|
||||
|
||||
with_wire = with_wire or {}
|
||||
|
||||
|
|
@ -212,7 +213,7 @@ class RemoteRepo(object):
|
|||
self.cert_dir = get_cert_path(rhodecode.CONFIG.get('__file__'))
|
||||
|
||||
def _repo_id_sanitizer(self, repo_id):
|
||||
return repo_id.replace('/', '__')
|
||||
return repo_id.replace('/', '__').replace('-', '_')
|
||||
|
||||
def __getattr__(self, name):
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue