Skip to content
Snippets Groups Projects
Commit f7dbf6d1 authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Merge branch 'truncate-fix' into 'master'

Fix truncate_first_line if message is nil

Fixes https://gitlab.com/gitlab-org/gitlab-ci/issues/255

/cc @jacobvosmaer 

See merge request !217
parents d88b9362 0b9e43f9
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -17,6 +17,6 @@ module CommitsHelper
end
 
def truncate_first_line(message, length = 50)
truncate(message.lines.first.chomp, length: length)
truncate(message.each_line.first.chomp, length: length) if message
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment