Changeset - 8ee36513efae
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-03-06 15:04:09
marcin@python-works.com
disallow cloning from different URI's that http[s]/svn/git/hg
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
rhodecode/model/validators.py
Show inline comments
 
@@ -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 = {
0 comments (0 inline, 0 general)