summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-12-10 14:11:56 -0800
committerDouwe Maan <douwe@selenight.nl>2018-12-11 17:39:32 +0100
commiteb335bbcfe50e46edb142564824a5d45fbb72e9c (patch)
tree6a74f39d98106de321d95da97f22d9fa71931287
parent85f430cb3cde4ff8c4d24c1b2a426670e38dd44f (diff)
downloadgitlab-ce-eb335bbcfe50e46edb142564824a5d45fbb72e9c.tar.gz
Fix DiffCheck failing due to invalid string argument
Hot patch for #55137
-rw-r--r--lib/gitlab/checks/diff_check.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gitlab/checks/diff_check.rb b/lib/gitlab/checks/diff_check.rb
index 49d361fcef7..b8697b4a02d 100644
--- a/lib/gitlab/checks/diff_check.rb
+++ b/lib/gitlab/checks/diff_check.rb
@@ -11,6 +11,7 @@ module Gitlab
}.freeze
def validate!
+ return if deletion? || newrev.nil?
return unless should_run_diff_validations?
return if commits.empty?
return unless uses_raw_delta_validations?