allura
Révision | 591c0ae96ec798cdceac395ef59c18cb8eafb1d0 (tree) |
---|---|
l'heure | 2012-07-18 23:48:12 |
Auteur | Igor Bondarenko <jetmind2@gmai...> |
Commiter | Dave Brondsema |
[#4556] ticket:122 remove h.push_config when clonning the repo
Reason: c.project must point to destination project, not source
@@ -54,12 +54,11 @@ class ForgeGitApp(RepositoryApp): | ||
54 | 54 | cloned_from_repo_id = self.config.options.get('cloned_from_repo_id') |
55 | 55 | init_from_url = self.config.options.get('init_from_url') |
56 | 56 | if cloned_from_project_id is not None: |
57 | - with h.push_config(c, project=M.Project.query.get(_id=cloned_from_project_id)): | |
58 | - cloned_from = GM.Repository.query.get(_id=cloned_from_repo_id) | |
59 | - allura.tasks.repo_tasks.clone.post( | |
60 | - cloned_from_path=cloned_from.full_fs_path, | |
61 | - cloned_from_name=cloned_from.app.config.script_name(), | |
62 | - cloned_from_url=cloned_from.full_fs_path) | |
57 | + cloned_from = GM.Repository.query.get(_id=cloned_from_repo_id) | |
58 | + allura.tasks.repo_tasks.clone.post( | |
59 | + cloned_from_path=cloned_from.full_fs_path, | |
60 | + cloned_from_name=cloned_from.app.config.script_name(), | |
61 | + cloned_from_url=cloned_from.full_fs_path) | |
63 | 62 | elif init_from_url: |
64 | 63 | allura.tasks.repo_tasks.clone.post( |
65 | 64 | cloned_from_path=None, |
@@ -54,12 +54,11 @@ class ForgeHgApp(RepositoryApp): | ||
54 | 54 | cloned_from_repo_id = self.config.options.get('cloned_from_repo_id') |
55 | 55 | init_from_url = self.config.options.get('init_from_url') |
56 | 56 | if cloned_from_project_id is not None: |
57 | - with h.push_config(c, project=M.Project.query.get(_id=cloned_from_project_id)): | |
58 | - cloned_from = HM.Repository.query.get(_id=cloned_from_repo_id) | |
59 | - allura.tasks.repo_tasks.clone.post( | |
60 | - cloned_from_path=cloned_from.full_fs_path, | |
61 | - cloned_from_name=cloned_from.app.config.script_name(), | |
62 | - cloned_from_url=cloned_from.full_fs_path) | |
57 | + cloned_from = HM.Repository.query.get(_id=cloned_from_repo_id) | |
58 | + allura.tasks.repo_tasks.clone.post( | |
59 | + cloned_from_path=cloned_from.full_fs_path, | |
60 | + cloned_from_name=cloned_from.app.config.script_name(), | |
61 | + cloned_from_url=cloned_from.full_fs_path) | |
63 | 62 | elif init_from_url: |
64 | 63 | allura.tasks.repo_tasks.clone.post( |
65 | 64 | cloned_from_path=None, |