Skip to content

Commit 7c36155

Browse files
committed
Fix check for empty commit message
1 parent 28db976 commit 7c36155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/templates/helper.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func RenderCommitMessageLinkSubject(msg, urlPrefix, urlDefault string, metas map
341341
cleanMsg := template.HTMLEscapeString(msg)
342342

343343
msgLines := strings.Split(strings.TrimSpace(string(cleanMsg)), "\n")
344-
if len(msgLines) == 0 {
344+
if len(msgLines[0]) == 0 {
345345
return template.HTML("")
346346
}
347347

0 commit comments

Comments
 (0)