Commit e7599eb0 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Should pass repository rather than project

parent f071e3d3
......@@ -19,7 +19,8 @@ class CompareService
if target_project == source_project
compare(source_sha, target_project, target_branch, straight)
else
target_project.repository.with_tmp_ref(source_project, source_branch) do
target_project.repository.with_tmp_ref(
source_project.repository, source_branch) do
compare(source_sha, target_project, target_branch, straight)
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