Commit ca9b7ab3 authored by Valery Sizov's avatar Valery Sizov

[CE upstream] Fix spinach

parent 014d9259
......@@ -16,7 +16,7 @@ class Gitlab::Seeder::Builds
end
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.map do |sha|
@project.ensure_ci_commit(sha, 'master')
......
......@@ -21,7 +21,7 @@ module Gitlab
@repo = @merge_request.target_project.repository
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
end
end
......@@ -34,7 +34,7 @@ module Gitlab
compare_diffs = diffable.first.diffs
return [] unless compare_diffs.present?
compare_diffs.map do |diff|
if diff.deleted_file || diff.renamed_file
diff.old_path
......
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