Commit f3a7a3ec authored by Lin Jen-Shin's avatar Lin Jen-Shin

MergeRequest#commits.last is actually first_commit

Using a method would be less confusing.
parent 15191864
......@@ -610,7 +610,7 @@ class MergeRequest < ActiveRecord::Base
end
def source_sha_parent
source_project.repository.commit(commits.last.sha).parents.first.sha
source_project.repository.commit(first_commit.sha).parents.first.sha
end
def ff_merge_possible?
......
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