# HG changeset patch # User Marcin Kuzminski # Date 1362578649 -3600 # Node ID 8ee36513efaed9b5fb408484ddf5c5fcf9105719 # Parent c9214877d43ecc2c6021d790db25046153e9abe3 disallow cloning from different URI's that http[s]/svn/git/hg diff -r c9214877d43e -r 8ee36513efae rhodecode/model/validators.py --- 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 = {