Commit ca9b7ab3 authored by Valery Sizov's avatar Valery Sizov

[CE upstream] Fix spinach

parent 014d9259
...@@ -16,7 +16,7 @@ class Gitlab::Seeder::Builds ...@@ -16,7 +16,7 @@ class Gitlab::Seeder::Builds
end end
def ci_commits def ci_commits
commits = @project.repository.commits('master', nil, 5) commits = @project.repository.commits('master', path: nil, limit: 5)
commits_sha = commits.map { |commit| commit.raw.id } commits_sha = commits.map { |commit| commit.raw.id }
commits_sha.map do |sha| commits_sha.map do |sha|
@project.ensure_ci_commit(sha, 'master') @project.ensure_ci_commit(sha, 'master')
......
...@@ -21,7 +21,7 @@ module Gitlab ...@@ -21,7 +21,7 @@ module Gitlab
@repo = @merge_request.target_project.repository @repo = @merge_request.target_project.repository
list_of_involved_files.each do |path| list_of_involved_files.each do |path|
@repo.commits(@merge_request.target_branch, path, COMMITS_TO_CONSIDER).each do |commit| @repo.commits(@merge_request.target_branch, path: path, limit: COMMITS_TO_CONSIDER).each do |commit|
@users[commit.author] += 1 if commit.author @users[commit.author] += 1 if commit.author
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