Show More
@@ -341,14 +341,9 b' def repo2db_mapper(initial_repo_list, re' | |||||
341 | if not rm.get(name, cache=False): |
|
341 | if not rm.get(name, cache=False): | |
342 | log.info('repository %s not found creating default', name) |
|
342 | log.info('repository %s not found creating default', name) | |
343 |
|
343 | |||
344 | if isinstance(repo, MercurialRepository): |
|
|||
345 | repo_type = 'hg' |
|
|||
346 | if isinstance(repo, GitRepository): |
|
|||
347 | repo_type = 'git' |
|
|||
348 |
|
||||
349 | form_data = { |
|
344 | form_data = { | |
350 | 'repo_name':name, |
|
345 | 'repo_name':name, | |
351 |
'repo_type':repo |
|
346 | 'repo_type':repo.alias, | |
352 | 'description':repo.description if repo.description != 'unknown' else \ |
|
347 | 'description':repo.description if repo.description != 'unknown' else \ | |
353 | 'auto description for %s' % name, |
|
348 | 'auto description for %s' % name, | |
354 | 'private':False |
|
349 | 'private':False |
General Comments 0
You need to be logged in to leave comments.
Login now