Show More
@@ -185,9 +185,10 b' class RemoteRepo(object):' | |||||
185 | self.url = remote_maker.url |
|
185 | self.url = remote_maker.url | |
186 | self.stream_url = remote_maker.stream_url |
|
186 | self.stream_url = remote_maker.stream_url | |
187 | self._session = remote_maker._session_factory() |
|
187 | self._session = remote_maker._session_factory() | |
|
188 | ||||
188 | cache_repo_id = self._repo_id_sanitizer(repo_id) |
|
189 | cache_repo_id = self._repo_id_sanitizer(repo_id) | |
189 | self._cache_region, self._cache_namespace = \ |
|
190 | self._cache_region, self._cache_namespace = \ | |
190 |
remote_maker.init_cache_region( |
|
191 | remote_maker.init_cache_region(cache_repo_id) | |
191 |
|
192 | |||
192 | with_wire = with_wire or {} |
|
193 | with_wire = with_wire or {} | |
193 |
|
194 | |||
@@ -212,7 +213,7 b' class RemoteRepo(object):' | |||||
212 | self.cert_dir = get_cert_path(rhodecode.CONFIG.get('__file__')) |
|
213 | self.cert_dir = get_cert_path(rhodecode.CONFIG.get('__file__')) | |
213 |
|
214 | |||
214 | def _repo_id_sanitizer(self, repo_id): |
|
215 | def _repo_id_sanitizer(self, repo_id): | |
215 | return repo_id.replace('/', '__') |
|
216 | return repo_id.replace('/', '__').replace('-', '_') | |
216 |
|
217 | |||
217 | def __getattr__(self, name): |
|
218 | def __getattr__(self, name): | |
218 |
|
219 |
General Comments 0
You need to be logged in to leave comments.
Login now