BigW Consortium Gitlab

Commit 8e031ce3 by Dmitriy Zaporozhets

Remove requirement for base_commit_sha to allow creation of merge requests for orphaned branches

parent 5cad2d29
......@@ -22,9 +22,8 @@ class MergeRequestDiff < ActiveRecord::Base
serialize :st_commits
serialize :st_diffs
validates :start_commit_sha, presence: true
validates :head_commit_sha, presence: true
validates :base_commit_sha, presence: true
validates :start_commit_sha, presence: true, unless: :importing?
validates :head_commit_sha, presence: true, unless: :importing?
after_initialize :set_diff_range, unless: :importing?
after_create :save_git_content, unless: :importing?
......
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