##// END OF EJS Templates
fix archive download for git
marcink -
r1809:ef0066e9 beta
parent child Browse files
Show More
@@ -369,10 +369,11 b' class FilesController(BaseRepoController'
369 if dbrepo.enable_downloads is False:
369 if dbrepo.enable_downloads is False:
370 return _('downloads disabled')
370 return _('downloads disabled')
371
371
372 # patch and reset hooks section of UI config to not run any
372 if c.rhodecode_repo.alias == 'hg':
373 # hooks on fetching archives with subrepos
373 # patch and reset hooks section of UI config to not run any
374 for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'):
374 # hooks on fetching archives with subrepos
375 c.rhodecode_repo._repo.ui.setconfig('hooks', k, None)
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 cs = c.rhodecode_repo.get_changeset(revision)
378 cs = c.rhodecode_repo.get_changeset(revision)
378 content_type = settings.ARCHIVE_SPECS[fileformat][0]
379 content_type = settings.ARCHIVE_SPECS[fileformat][0]
General Comments 0
You need to be logged in to leave comments. Login now