Show More
@@ -257,6 +257,11 b' class RepoRoutePredicate(object):' | |||||
257 | phash = text |
|
257 | phash = text | |
258 |
|
258 | |||
259 | def __call__(self, info, request): |
|
259 | def __call__(self, info, request): | |
|
260 | ||||
|
261 | if hasattr(request, 'vcs_call'): | |||
|
262 | # skip vcs calls | |||
|
263 | return | |||
|
264 | ||||
260 | repo_name = info['match']['repo_name'] |
|
265 | repo_name = info['match']['repo_name'] | |
261 | repo_model = repo.RepoModel() |
|
266 | repo_model = repo.RepoModel() | |
262 | by_name_match = repo_model.get_by_repo_name(repo_name, cache=True) |
|
267 | by_name_match = repo_model.get_by_repo_name(repo_name, cache=True) | |
@@ -284,6 +289,9 b' class RepoTypeRoutePredicate(object):' | |||||
284 | phash = text |
|
289 | phash = text | |
285 |
|
290 | |||
286 | def __call__(self, info, request): |
|
291 | def __call__(self, info, request): | |
|
292 | if hasattr(request, 'vcs_call'): | |||
|
293 | # skip vcs calls | |||
|
294 | return | |||
287 |
|
295 | |||
288 | rhodecode_db_repo = request.db_repo |
|
296 | rhodecode_db_repo = request.db_repo | |
289 |
|
297 | |||
@@ -316,6 +324,10 b' class RepoGroupRoutePredicate(object):' | |||||
316 | phash = text |
|
324 | phash = text | |
317 |
|
325 | |||
318 | def __call__(self, info, request): |
|
326 | def __call__(self, info, request): | |
|
327 | if hasattr(request, 'vcs_call'): | |||
|
328 | # skip vcs calls | |||
|
329 | return | |||
|
330 | ||||
319 | repo_group_name = info['match']['repo_group_name'] |
|
331 | repo_group_name = info['match']['repo_group_name'] | |
320 | repo_group_model = repo_group.RepoGroupModel() |
|
332 | repo_group_model = repo_group.RepoGroupModel() | |
321 | by_name_match = repo_group_model.get_by_group_name( |
|
333 | by_name_match = repo_group_model.get_by_group_name( |
General Comments 0
You need to be logged in to leave comments.
Login now