Skip to content

Commit 50c9066

Browse files
author
Kevin McConnell
committed
Don't remove blank lines in commit messages
When parsing the commit messages, preserve any blank lines that are in the message. Signed-off-by: Kevin McConnell <[email protected]>
1 parent 4c39f9d commit 50c9066

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/commit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def list_from_string(cls, repo, text):
145145
Returns
146146
git.Commit[]
147147
"""
148-
lines = [l for l in text.splitlines() if l.strip()]
148+
lines = [l for l in text.splitlines() if l.strip('\r\n')]
149149

150150
commits = []
151151

0 commit comments

Comments
 (0)