Mercurial > kallithea
diff rhodecode/lib/utils.py @ 656:36f839886e0d beta
merge
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 05 Nov 2010 18:39:09 +0100 |
parents | 7f5976da192c 37dc1e8d84d8 |
children | 758f64f3fbda |
line wrap: on
line diff
--- a/rhodecode/lib/utils.py Fri Nov 05 18:38:25 2010 +0100 +++ b/rhodecode/lib/utils.py Fri Nov 05 18:39:09 2010 +0100 @@ -342,14 +342,9 @@ 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