# HG changeset patch # User Marcin Kuzminski # Date 2010-11-04 01:32:37 # Node ID 37dc1e8d84d8d49df81a966431f3728a63f11283 # Parent ae292c3b94ed404c1d08bb1f04e9450719497531 changed repo type to use alias diff --git a/rhodecode/lib/utils.py b/rhodecode/lib/utils.py --- a/rhodecode/lib/utils.py +++ b/rhodecode/lib/utils.py @@ -341,14 +341,9 @@ def repo2db_mapper(initial_repo_list, re if not rm.get(name, cache=False): log.info('repository %s not found creating default', name) - if isinstance(repo, MercurialRepository): - repo_type = 'hg' - if isinstance(repo, GitRepository): - repo_type = 'git' - form_data = { 'repo_name':name, - 'repo_type':repo_type, + 'repo_type':repo.alias, 'description':repo.description if repo.description != 'unknown' else \ 'auto description for %s' % name, 'private':False