slightly tweak about the comment, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15750250
This commit is contained in:
parent
307be4b521
commit
f2eb10c9bc
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue