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:
authorStan Hu <stanhu@gmail.com>2018-12-11 01:11:56 +0300
committerDouwe Maan <douwe@selenight.nl>2018-12-11 19:39:32 +0300
commiteb335bbcfe50e46edb142564824a5d45fbb72e9c (patch)
tree6a74f39d98106de321d95da97f22d9fa71931287 /lib/gitlab/checks
parent85f430cb3cde4ff8c4d24c1b2a426670e38dd44f (diff)
Fix DiffCheck failing due to invalid string argument
Hot patch for #55137
Diffstat (limited to 'lib/gitlab/checks')
-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?