Commit 83417865 authored by Saverio Miroddi's avatar Saverio Miroddi

Change a variable name in Commit#cherry_pick_description

parent 9ec358af
...@@ -252,21 +252,21 @@ class Commit ...@@ -252,21 +252,21 @@ class Commit
end end
def cherry_pick_description(user) def cherry_pick_description(user)
message_buffer = "(cherry picked from commit #{sha})" message_body = "(cherry picked from commit #{sha})"
if merged_merge_request?(user) if merged_merge_request?(user)
commits_in_merge_request = merged_merge_request(user).commits commits_in_merge_request = merged_merge_request(user).commits
if commits_in_merge_request.present? if commits_in_merge_request.present?
message_buffer << "\n" message_body << "\n"
commits_in_merge_request.reverse.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}" message_body << "\n#{commit_in_merge.short_id} #{commit_in_merge.title}"
end end
end end
end end
message_buffer message_body
end end
def cherry_pick_message(user) def cherry_pick_message(user)
......
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