diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-06-20 21:05:10 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-06-20 21:05:10 +0200 |
commit | a0d828fcb1964a578ef3979297c59a41aedba932 (patch) | |
tree | 74ea5789d6094d5424394b84122d4d55f5581c46 /lib/git/commit.py | |
parent | 8a0eee3989abd3a5d6d47d0298bd056a954d379b (diff) | |
download | gitpython-a0d828fcb1964a578ef3979297c59a41aedba932.tar.gz |
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
Diffstat (limited to 'lib/git/commit.py')
-rw-r--r-- | lib/git/commit.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 |