From 50c90666c4de8ac93accdf4040e3eb010a82a46a Mon Sep 17 00:00:00 2001 From: Kevin McConnell Date: Tue, 22 Sep 2009 09:59:04 -0700 Subject: 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 --- lib/git/commit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/git/commit.py') diff --git a/lib/git/commit.py b/lib/git/commit.py index 2b19ea42..3a014b59 100644 --- a/lib/git/commit.py +++ b/lib/git/commit.py @@ -145,7 +145,7 @@ class Commit(LazyMixin): Returns git.Commit[] """ - lines = [l for l in text.splitlines() if l.strip()] + lines = [l for l in text.splitlines() if l.strip('\r\n')] commits = [] -- cgit v1.2.1