Mercurial > kallithea
comparison rhodecode/lib/celerylib/tasks.py @ 1941:58c684bacdad beta
fix leftover bad code on fork function
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 22 Jan 2012 21:11:30 +0200 |
parents | cd8a7e3698bc |
children | 5fc9c92025c1 |
comparison
equal
deleted
inserted
replaced
1940:ef23fa832ab2 | 1941:58c684bacdad |
---|---|
365 :param cur_user: | 365 :param cur_user: |
366 """ | 366 """ |
367 from rhodecode.model.repo import RepoModel | 367 from rhodecode.model.repo import RepoModel |
368 | 368 |
369 log = get_logger(create_repo_fork) | 369 log = get_logger(create_repo_fork) |
370 DBS = create_repo_fork.DBS | 370 DBS = get_session() |
371 | 371 |
372 base_path = Repository.base_path() | 372 base_path = Repository.base_path() |
373 | 373 |
374 RepoModel(DBS).create(form_data, cur_user, just_db=True, fork=True) | 374 RepoModel(DBS).create(form_data, cur_user, just_db=True, fork=True) |
375 | 375 |
376 alias = form_data['repo_type'] | 376 alias = form_data['repo_type'] |