Should pass repository rather than project

This commit is contained in:
Lin Jen-Shin 2016-12-08 19:49:20 +08:00
parent f071e3d3ca
commit e7599eb0b7

View file

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