Commit 7639b580 authored by Nick Thomas's avatar Nick Thomas

Raise an error if creating the MergeRequestDiff fails

parent 0a70ba17
......@@ -668,7 +668,7 @@ class MergeRequest < ApplicationRecord
# n+1: https://gitlab.com/gitlab-org/gitlab-ce/issues/37435
Gitlab::GitalyClient.allow_n_plus_1_calls do
merge_request_diffs.create
merge_request_diffs.create!
reload_merge_request_diff
end
end
......
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