# HG changeset patch # User Marcin Kuzminski # Date 2012-01-22 19:11:30 # Node ID 58c684bacdada75e11a5c7790e27b183b508f654 # Parent ef23fa832ab26f03e2547c992a56b5578350ed65 fix leftover bad code on fork function diff --git a/rhodecode/lib/celerylib/tasks.py b/rhodecode/lib/celerylib/tasks.py --- a/rhodecode/lib/celerylib/tasks.py +++ b/rhodecode/lib/celerylib/tasks.py @@ -367,8 +367,8 @@ def create_repo_fork(form_data, cur_user from rhodecode.model.repo import RepoModel log = get_logger(create_repo_fork) - DBS = create_repo_fork.DBS - + DBS = get_session() + base_path = Repository.base_path() RepoModel(DBS).create(form_data, cur_user, just_db=True, fork=True)