Switch to unified view

a/ForgeGit/forgegit/git_main.py b/ForgeGit/forgegit/git_main.py
...
...
51
            status='initializing')
51
            status='initializing')
52
        ThreadLocalORMSession.flush_all()
52
        ThreadLocalORMSession.flush_all()
53
        cloned_from_project_id = self.config.options.get('cloned_from_project_id')
53
        cloned_from_project_id = self.config.options.get('cloned_from_project_id')
54
        cloned_from_repo_id = self.config.options.get('cloned_from_repo_id')
54
        cloned_from_repo_id = self.config.options.get('cloned_from_repo_id')
55
        init_from_url = self.config.options.get('init_from_url')
55
        init_from_url = self.config.options.get('init_from_url')
56
        init_from_path = self.config.options.get('init_from_path')
56
        if cloned_from_project_id is not None:
57
        if cloned_from_project_id is not None:
57
            cloned_from = GM.Repository.query.get(_id=cloned_from_repo_id)
58
            cloned_from = GM.Repository.query.get(_id=cloned_from_repo_id)
58
            allura.tasks.repo_tasks.clone.post(
59
            allura.tasks.repo_tasks.clone.post(
59
                cloned_from_path=cloned_from.full_fs_path,
60
                cloned_from_path=cloned_from.full_fs_path,
60
                cloned_from_name=cloned_from.app.config.script_name(),
61
                cloned_from_name=cloned_from.app.config.script_name(),
61
                cloned_from_url=cloned_from.full_fs_path)
62
                cloned_from_url=cloned_from.full_fs_path)
62
        elif init_from_url:
63
        elif init_from_url or init_from_path:
63
            allura.tasks.repo_tasks.clone.post(
64
            allura.tasks.repo_tasks.clone.post(
64
                cloned_from_path=None,
65
                cloned_from_path=init_from_path,
65
                cloned_from_name=None,
66
                cloned_from_name=None,
66
                cloned_from_url=init_from_url)
67
                cloned_from_url=init_from_url)
67
        else:
68
        else:
68
            allura.tasks.repo_tasks.init.post()
69
            allura.tasks.repo_tasks.init.post()