Show More
@@ -450,8 +450,8 b' def repo2db_mapper(initial_repo_list, re' | |||
|
450 | 450 | |
|
451 | 451 | for name, repo in initial_repo_list.items(): |
|
452 | 452 | group = map_groups(name) |
|
453 | repo = rm.get_by_repo_name(name) | |
|
454 | if not repo: | |
|
453 | db_repo = rm.get_by_repo_name(name) | |
|
454 | if not db_repo: | |
|
455 | 455 | log.info('repository %s not found creating now' % name) |
|
456 | 456 | added.append(name) |
|
457 | 457 | desc = (repo.description |
@@ -466,8 +466,8 b' def repo2db_mapper(initial_repo_list, re' | |||
|
466 | 466 | just_db=True |
|
467 | 467 | ) |
|
468 | 468 | elif install_git_hook: |
|
469 | if repo.repo_type == 'git': | |
|
470 | ScmModel().install_git_hook(repo.scm_instance) | |
|
469 | if db_repo.repo_type == 'git': | |
|
470 | ScmModel().install_git_hook(db_repo.scm_instance) | |
|
471 | 471 | sa.commit() |
|
472 | 472 | removed = [] |
|
473 | 473 | if remove_obsolete: |
General Comments 0
You need to be logged in to leave comments.
Login now