Mercurial > kallithea
changeset 3482:8ee36513efae beta
disallow cloning from different URI's that http[s]/svn/git/hg
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 06 Mar 2013 15:04:09 +0100 |
parents | c9214877d43e |
children | 75e563531350 |
files | rhodecode/model/validators.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/model/validators.py Wed Mar 06 14:52:25 2013 +0100 +++ b/rhodecode/model/validators.py Wed Mar 06 15:04:09 2013 +0100 @@ -416,6 +416,8 @@ svnremoterepo(ui, url).capabilities elif url.startswith('git+http'): raise NotImplementedError() + else: + raise Exception('clone from URI %s not allowed' % (url)) elif repo_type == 'git': from rhodecode.lib.vcs.backends.git.repository import GitRepository @@ -427,6 +429,8 @@ raise NotImplementedError() elif url.startswith('hg+http'): raise NotImplementedError() + else: + raise Exception('clone from URI %s not allowed' % (url)) class _validator(formencode.validators.FancyValidator): messages = {