Commit ac586ab4 authored by Toon Claes's avatar Toon Claes

Do not ensure ref is fetched if database is read-only

Closes gitlab-org/gitlab-ee#3398
parent 2212dad6
......@@ -15,7 +15,7 @@ class Projects::MergeRequests::ApplicationController < Projects::ApplicationCont
# Make sure merge requests created before 8.0
# have head file in refs/merge-requests/
def ensure_ref_fetched
@merge_request.ensure_ref_fetched
@merge_request.ensure_ref_fetched unless Gitlab::Database.readonly?
end
def merge_request_params
......
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