diff options
author | Saverio Miroddi <saverio.pub2@gmail.com> | 2017-08-21 21:47:18 +0300 |
---|---|---|
committer | Saverio Miroddi <saverio.pub2@gmail.com> | 2017-08-21 21:47:18 +0300 |
commit | 9ec358af7bfe95c90d1c3c3fdd1db8a3a69c11ed (patch) | |
tree | 3863d3b42e4b847b7e75611a56925c6b921b325c /app/models | |
parent | b4622c772ed1fb6974b0e5f39890978d48ad77da (diff) |
Reverse order of commits in MR cherry-pick message
Also improved the UT for better documenting this change.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/commit.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 5f59d088cd2..78e67c09d93 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -260,7 +260,7 @@ class Commit if commits_in_merge_request.present? message_buffer << "\n" - commits_in_merge_request.each do |commit_in_merge| + commits_in_merge_request.reverse.each do |commit_in_merge| message_buffer << "\n#{commit_in_merge.short_id} #{commit_in_merge.title}" end end |