提交 8ae57909 编写于 作者: E Eric Eastwood

Backport BE changes from CI/CD projects ee!4567

See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/4567
上级 c9660b45
......@@ -41,7 +41,7 @@ class ProjectsController < Projects::ApplicationController
cookies[:issue_board_welcome_hidden] = { path: project_path(@project), value: nil, expires: Time.at(0) }
redirect_to(
project_path(@project),
project_path(@project, custom_import_params),
notice: _("Project '%{project_name}' was successfully created.") % { project_name: @project.name }
)
else
......@@ -103,7 +103,7 @@ class ProjectsController < Projects::ApplicationController
def show
if @project.import_in_progress?
redirect_to project_import_path(@project)
redirect_to project_import_path(@project, custom_import_params)
return
end
......@@ -359,6 +359,10 @@ class ProjectsController < Projects::ApplicationController
]
end
def custom_import_params
{}
end
def repo_exists?
project.repository_exists? && !project.empty_repo?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册