diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-29 15:29:59 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-07-29 15:29:59 +0400 |
commit | 2f780af2462d71164c2e11bc6147f87400303a64 (patch) | |
tree | 047adc70de5967401a2258480043b3fdd4c53ab3 /app | |
parent | 027fcc0512accb81043e81d4f7b9a06a3f0fa12f (diff) |
Git::Compare does not have limit param any more
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/services/compare_service.rb | 1 | ||||
-rw-r--r-- | app/workers/emails_on_push_worker.rb | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/app/services/compare_service.rb b/app/services/compare_service.rb index e4c3bb1507d..c5e04702914 100644 --- a/app/services/compare_service.rb +++ b/app/services/compare_service.rb @@ -12,7 +12,6 @@ class CompareService target_project.repository.raw_repository, target_branch, source_branch, - 10000 ) ) else diff --git a/app/workers/emails_on_push_worker.rb b/app/workers/emails_on_push_worker.rb index 5e81810cbdb..2947c8e3ecd 100644 --- a/app/workers/emails_on_push_worker.rb +++ b/app/workers/emails_on_push_worker.rb @@ -13,7 +13,7 @@ class EmailsOnPushWorker return true end - compare = Gitlab::Git::Compare.new(project.repository.raw_repository, before_sha, after_sha, MergeRequestDiff::COMMITS_SAFE_SIZE) + compare = Gitlab::Git::Compare.new(project.repository.raw_repository, before_sha, after_sha) # Do not send emails if git compare failed return false unless compare && compare.commits.present? |