##// END OF EJS Templates
disallow cloning from different URI's that http[s]/svn/git/hg
marcink -
r3482:8ee36513 beta
parent child Browse files
Show More
@@ -416,6 +416,8 b' def ValidCloneUri():'
416 svnremoterepo(ui, url).capabilities
416 svnremoterepo(ui, url).capabilities
417 elif url.startswith('git+http'):
417 elif url.startswith('git+http'):
418 raise NotImplementedError()
418 raise NotImplementedError()
419 else:
420 raise Exception('clone from URI %s not allowed' % (url))
419
421
420 elif repo_type == 'git':
422 elif repo_type == 'git':
421 from rhodecode.lib.vcs.backends.git.repository import GitRepository
423 from rhodecode.lib.vcs.backends.git.repository import GitRepository
@@ -427,6 +429,8 b' def ValidCloneUri():'
427 raise NotImplementedError()
429 raise NotImplementedError()
428 elif url.startswith('hg+http'):
430 elif url.startswith('hg+http'):
429 raise NotImplementedError()
431 raise NotImplementedError()
432 else:
433 raise Exception('clone from URI %s not allowed' % (url))
430
434
431 class _validator(formencode.validators.FancyValidator):
435 class _validator(formencode.validators.FancyValidator):
432 messages = {
436 messages = {
General Comments 0
You need to be logged in to leave comments. Login now