diff options
author | Stan Hu <stanhu@gmail.com> | 2018-12-11 01:11:56 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-12-11 19:39:32 +0300 |
commit | eb335bbcfe50e46edb142564824a5d45fbb72e9c (patch) | |
tree | 6a74f39d98106de321d95da97f22d9fa71931287 | |
parent | 85f430cb3cde4ff8c4d24c1b2a426670e38dd44f (diff) |
Fix DiffCheck failing due to invalid string argument
Hot patch for #55137
-rw-r--r-- | lib/gitlab/checks/diff_check.rb | 1 |
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? |