Commit f2eb10c9 authored by Lin Jen-Shin's avatar Lin Jen-Shin
parent 307be4b5
...@@ -751,7 +751,7 @@ class MergeRequest < ActiveRecord::Base ...@@ -751,7 +751,7 @@ class MergeRequest < ActiveRecord::Base
where(sha: all_commits_sha, ref: source_branch) where(sha: all_commits_sha, ref: source_branch)
end 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 def all_commits_sha
if persisted? if persisted?
merge_request_diffs.flat_map(&:commits_sha).uniq 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