Commit 5ec1e539 authored by Stan Hu's avatar Stan Hu

Fix DiffCheck failing due to invalid string argument

Hot patch for #55137
parent eccf20df
...@@ -12,6 +12,7 @@ module Gitlab ...@@ -12,6 +12,7 @@ module Gitlab
}.freeze }.freeze
def validate! def validate!
return if deletion? || newrev.nil?
return unless should_run_diff_validations? return unless should_run_diff_validations?
return if commits.empty? return if commits.empty?
return unless uses_raw_delta_validations? return unless uses_raw_delta_validations?
......
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