Show More
@@ -168,7 +168,7 b' class FileNamespaceBackend(PickleSeriali' | |||
|
168 | 168 | try: |
|
169 | 169 | super(FileNamespaceBackend, self).__init__(arguments) |
|
170 | 170 | except Exception: |
|
171 |
log.e |
|
|
171 | log.exception('Failed to initialize db at: %s', db_file) | |
|
172 | 172 | raise |
|
173 | 173 | |
|
174 | 174 | def __repr__(self): |
@@ -186,7 +186,7 b' class RemoteRepo(object):' | |||
|
186 | 186 | self.stream_url = remote_maker.stream_url |
|
187 | 187 | self._session = remote_maker._session_factory() |
|
188 | 188 | self._cache_region, self._cache_namespace = \ |
|
189 | remote_maker.init_cache_region(repo_id) | |
|
189 | remote_maker.init_cache_region(self._repo_id_sanitizer(repo_id)) | |
|
190 | 190 | |
|
191 | 191 | with_wire = with_wire or {} |
|
192 | 192 | |
@@ -209,6 +209,9 b' class RemoteRepo(object):' | |||
|
209 | 209 | |
|
210 | 210 | self.cert_dir = get_cert_path(rhodecode.CONFIG.get('__file__')) |
|
211 | 211 | |
|
212 | def _repo_id_sanitizer(self, repo_id): | |
|
213 | return repo_id.replace('/', '__') | |
|
214 | ||
|
212 | 215 | def __getattr__(self, name): |
|
213 | 216 | |
|
214 | 217 | if name.startswith('stream:'): |
@@ -940,6 +940,7 b' class RepoModel(BaseModel):' | |||
|
940 | 940 | if landing_rev_name.startswith('branch:'): |
|
941 | 941 | landing_rev_name = landing_rev_name.split('branch:')[-1] |
|
942 | 942 | scm_instance = repo.scm_instance() |
|
943 | if scm_instance: | |
|
943 | 944 | return scm_instance._remote.set_head_ref(landing_rev_name) |
|
944 | 945 | |
|
945 | 946 | def _create_filesystem_repo(self, repo_name, repo_type, repo_group, |
General Comments 0
You need to be logged in to leave comments.
Login now