• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

Révision591c0ae96ec798cdceac395ef59c18cb8eafb1d0 (tree)
l'heure2012-07-18 23:48:12
AuteurIgor Bondarenko <jetmind2@gmai...>
CommiterDave Brondsema

Message de Log

[#4556] ticket:122 remove h.push_config when clonning the repo

Reason: c.project must point to destination project, not source

Change Summary

Modification

--- a/ForgeGit/forgegit/git_main.py
+++ b/ForgeGit/forgegit/git_main.py
@@ -54,12 +54,11 @@ class ForgeGitApp(RepositoryApp):
5454 cloned_from_repo_id = self.config.options.get('cloned_from_repo_id')
5555 init_from_url = self.config.options.get('init_from_url')
5656 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)
6362 elif init_from_url:
6463 allura.tasks.repo_tasks.clone.post(
6564 cloned_from_path=None,
--- a/ForgeHg/forgehg/hg_main.py
+++ b/ForgeHg/forgehg/hg_main.py
@@ -54,12 +54,11 @@ class ForgeHgApp(RepositoryApp):
5454 cloned_from_repo_id = self.config.options.get('cloned_from_repo_id')
5555 init_from_url = self.config.options.get('init_from_url')
5656 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)
6362 elif init_from_url:
6463 allura.tasks.repo_tasks.clone.post(
6564 cloned_from_path=None,