Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaco Guzman <pacoguzmanp@gmail.com>2016-07-27 14:09:52 +0300
committerPaco Guzman <pacoguzmanp@gmail.com>2016-08-03 08:00:20 +0300
commit1d0c7b74920a94e488e6a2c090abb3e525438053 (patch)
tree746321bd5aa1d580f8df0337389fb92bb64ca1eb /app/services/compare_service.rb
parent8f359ea9170b984ad43d126e17628c31ac3a1f14 (diff)
Introduce Compare model in the codebase.
This object will manage Gitlab::Git::Compare instances
Diffstat (limited to 'app/services/compare_service.rb')
-rw-r--r--app/services/compare_service.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/services/compare_service.rb b/app/services/compare_service.rb
index 149822aa647..bb3aff72b47 100644
--- a/app/services/compare_service.rb
+++ b/app/services/compare_service.rb
@@ -20,10 +20,13 @@ class CompareService
)
end
- Gitlab::Git::Compare.new(
+ raw_compare = Gitlab::Git::Compare.new(
target_project.repository.raw_repository,
target_branch,
- source_sha,
+ source_sha
)
+
+ # REVIEW be sure if it's target_project or source_project
+ Compare.new(raw_compare, target_project)
end
end