BigW Consortium Gitlab

Commit b0ba1581 by Lin Jen-Shin

Backport EE change for setting up forked project

parent 5a2acfe0
...@@ -6,11 +6,7 @@ describe MergeRequests::Conflicts::ResolveService do ...@@ -6,11 +6,7 @@ describe MergeRequests::Conflicts::ResolveService do
let(:project) { create(:project, :public, :repository) } let(:project) { create(:project, :public, :repository) }
let(:forked_project) do let(:forked_project) do
forked_project = fork_project(project, user) fork_project_with_submodules(project, user)
TestEnv.copy_repo(forked_project,
bare_repo: TestEnv.forked_repo_path_bare,
refs: TestEnv::FORKED_BRANCH_SHA)
forked_project
end end
let(:merge_request) do let(:merge_request) do
......
...@@ -52,7 +52,7 @@ module ProjectForksHelper ...@@ -52,7 +52,7 @@ module ProjectForksHelper
TestEnv.copy_repo(forked_project, TestEnv.copy_repo(forked_project,
bare_repo: TestEnv.forked_repo_path_bare, bare_repo: TestEnv.forked_repo_path_bare,
refs: TestEnv::FORKED_BRANCH_SHA) refs: TestEnv::FORKED_BRANCH_SHA)
forked_project.repository.after_import
forked_project forked_project
end end
end end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment