diff options
author | Kevin McConnell <kevin@myemma.com> | 2009-09-22 09:59:04 -0700 |
---|---|---|
committer | Kevin McConnell <kevin@myemma.com> | 2009-09-22 10:06:22 -0700 |
commit | 50c90666c4de8ac93accdf4040e3eb010a82a46a (patch) | |
tree | bcea61efedca944fab289924f2453454985c6a4e /lib/git/commit.py | |
parent | 4c39f9da792792d4e73fc3a5effde66576ae128c (diff) | |
download | gitpython-50c90666c4de8ac93accdf4040e3eb010a82a46a.tar.gz |
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 <kevin.mcconnell@gmail.com>
Diffstat (limited to 'lib/git/commit.py')
-rw-r--r-- | lib/git/commit.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 = [] |