BigW Consortium Gitlab

Make sure merge request is fetched before collecting base sha in merge request diff

parent a94553a9
......@@ -41,6 +41,7 @@ class MergeRequestDiff < ActiveRecord::Base
end
def ensure_commits_sha
merge_request.fetch_ref
self.start_commit_sha ||= merge_request.target_branch_sha
self.head_commit_sha ||= merge_request.source_branch_sha
self.base_commit_sha ||= find_base_sha
......
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