slightly tweak about the comment, feedback:

https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6414#note_15750250
This commit is contained in:
Lin Jen-Shin 2016-09-20 19:18:48 +08:00
parent 307be4b521
commit f2eb10c9bc
1 changed files with 1 additions and 1 deletions

View File

@ -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