# HG changeset patch # User Marcin Kuzminski # Date 2013-03-06 14:04:09 # Node ID 8ee36513efaed9b5fb408484ddf5c5fcf9105719 # Parent c9214877d43ecc2c6021d790db25046153e9abe3 disallow cloning from different URI's that http[s]/svn/git/hg diff --git a/rhodecode/model/validators.py b/rhodecode/model/validators.py --- a/rhodecode/model/validators.py +++ b/rhodecode/model/validators.py @@ -416,6 +416,8 @@ def ValidCloneUri(): 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 @@ def ValidCloneUri(): 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 = {