Commit f2eb10c9 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 307be4b5
......@@ -751,7 +751,7 @@ class MergeRequest < ActiveRecord::Base
where(sha: all_commits_sha, ref: source_branch)
end
# Note that this would also return SHA from dangling commits
# Note that this could also return SHA from now dangling commits
def all_commits_sha
if persisted?
merge_request_diffs.flat_map(&:commits_sha).uniq
......
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