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:
Diffstat (limited to 'lib/gitlab/checks/diff_check.rb')
-rw-r--r--lib/gitlab/checks/diff_check.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/gitlab/checks/diff_check.rb b/lib/gitlab/checks/diff_check.rb
index 083c2448a0a..1186b532baf 100644
--- a/lib/gitlab/checks/diff_check.rb
+++ b/lib/gitlab/checks/diff_check.rb
@@ -18,7 +18,10 @@ module Gitlab
return unless should_run_validations?
return if commits.empty?
- paths = project.repository.find_changed_paths(commits.map(&:sha))
+ paths = project.repository.find_changed_paths(
+ commits.map(&:sha), merge_commit_diff_mode: :all_parents
+ )
+
paths.each do |path|
validate_path(path)
end