Show More
@@ -369,10 +369,11 b' class FilesController(BaseRepoController' | |||
|
369 | 369 | if dbrepo.enable_downloads is False: |
|
370 | 370 | return _('downloads disabled') |
|
371 | 371 | |
|
372 | # patch and reset hooks section of UI config to not run any | |
|
373 | # hooks on fetching archives with subrepos | |
|
374 | for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'): | |
|
375 |
c.rhodecode_repo._repo.ui. |
|
|
372 | if c.rhodecode_repo.alias == 'hg': | |
|
373 | # patch and reset hooks section of UI config to not run any | |
|
374 | # hooks on fetching archives with subrepos | |
|
375 | for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'): | |
|
376 | c.rhodecode_repo._repo.ui.setconfig('hooks', k, None) | |
|
376 | 377 | |
|
377 | 378 | cs = c.rhodecode_repo.get_changeset(revision) |
|
378 | 379 | content_type = settings.ARCHIVE_SPECS[fileformat][0] |
General Comments 0
You need to be logged in to leave comments.
Login now