diff options
Diffstat (limited to 'lib/git/commit.py')
-rw-r--r-- | lib/git/commit.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/commit.py b/lib/git/commit.py index 2bd78b75..ba7a7102 100644 --- a/lib/git/commit.py +++ b/lib/git/commit.py @@ -114,6 +114,7 @@ class Commit(LazyMixin): def find_all(cls, repo, ref, path='', **kwargs): """ Find all commits matching the given criteria. + ``repo`` is the Repo @@ -151,7 +152,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 = [] |