Mercurial > kallithea
changeset 3483:994dfdd0c920
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 | 702da441f5c4 |
children | ef21dadcaa7c |
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 00:20:13 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 = {