• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修訂591c0ae96ec798cdceac395ef59c18cb8eafb1d0 (tree)
時間2012-07-18 23:48:12
作者Igor Bondarenko <jetmind2@gmai...>
CommiterDave Brondsema

Log Message

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

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

Change Summary

差異

--- 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,