Mercurial > kallithea
changeset 1809:ef0066e95be5 beta
fix archive download for git
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sat, 24 Dec 2011 02:21:22 +0200 |
parents | ff788e390497 |
children | 203af05539e0 |
files | rhodecode/controllers/files.py |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/controllers/files.py Sat Dec 24 01:07:03 2011 +0200 +++ b/rhodecode/controllers/files.py Sat Dec 24 02:21:22 2011 +0200 @@ -369,10 +369,11 @@ if dbrepo.enable_downloads is False: return _('downloads disabled') - # patch and reset hooks section of UI config to not run any - # hooks on fetching archives with subrepos - for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'): - c.rhodecode_repo._repo.ui.setconfig('hooks', k, None) + if c.rhodecode_repo.alias == 'hg': + # patch and reset hooks section of UI config to not run any + # hooks on fetching archives with subrepos + for k, v in c.rhodecode_repo._repo.ui.configitems('hooks'): + c.rhodecode_repo._repo.ui.setconfig('hooks', k, None) cs = c.rhodecode_repo.get_changeset(revision) content_type = settings.ARCHIVE_SPECS[fileformat][0]