From a0d828fcb1964a578ef3979297c59a41aedba932 Mon Sep 17 00:00:00 2001 From: Florian Apolloner Date: Fri, 20 Jun 2008 21:05:10 +0200 Subject: fixed second problem in http://groups.google.com/group/git-python/browse_thread/thread/b8f3580abf31f9db?hl=en# I'll look at the other one in an hour --- lib/git/commit.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/git/commit.py') diff --git a/lib/git/commit.py b/lib/git/commit.py index 701f6c04..fb52e42a 100644 --- a/lib/git/commit.py +++ b/lib/git/commit.py @@ -154,7 +154,7 @@ class Commit(LazyMixin): return commits @classmethod - def diff(cls, repo, a, b = None, paths = []): + def diff(cls, repo, a, b = None, paths = None): """ Show diffs between two trees: @@ -175,6 +175,8 @@ class Commit(LazyMixin): Returns GitPython.Diff[] """ + paths = paths or [] + if isinstance(b, list): paths = b b = None -- cgit v1.2.1