Show More
@@ -293,7 +293,9 b' class RemoteRepo(object):' | |||
|
293 | 293 | 'is_path_valid_repository', |
|
294 | 294 | ] |
|
295 | 295 | |
|
296 | if local_cache_on and name in cache_methods: | |
|
296 | wire_cache = self._wire['cache'] | |
|
297 | ||
|
298 | if local_cache_on and wire_cache and name in cache_methods: | |
|
297 | 299 | cache_on = True |
|
298 | 300 | repo_state_uid = self._wire['repo_state_uid'] |
|
299 | 301 | call_args = [a for a in args] |
@@ -303,6 +305,7 b' class RemoteRepo(object):' | |||
|
303 | 305 | |
|
304 | 306 | @exceptions.map_vcs_exceptions |
|
305 | 307 | def _call(self, name, *args, **kwargs): |
|
308 | ||
|
306 | 309 | context_uid, payload = self._base_call(name, *args, **kwargs) |
|
307 | 310 | url = self.url |
|
308 | 311 |
@@ -213,12 +213,10 b' class ScmModel(BaseModel):' | |||
|
213 | 213 | |
|
214 | 214 | try: |
|
215 | 215 | if name in repos: |
|
216 |
raise RepositoryError('Duplicate repository name |
|
|
217 | 'found in %s' % (name, path)) | |
|
216 | raise RepositoryError(f'Duplicate repository name {name} found in {path}') | |
|
218 | 217 | elif path[0] in rhodecode.BACKENDS: |
|
219 | 218 | backend = get_backend(path[0]) |
|
220 | repos[name] = backend(path[1], config=config, | |
|
221 | with_wire={"cache": False}) | |
|
219 | repos[name] = backend(path[1], config=config, with_wire={"cache": False}) | |
|
222 | 220 | except OSError: |
|
223 | 221 | continue |
|
224 | 222 | except RepositoryError: |
General Comments 0
You need to be logged in to leave comments.
Login now