Skip to content

Commit a0d828f

Browse files
committed
I'll look at the other one in an hour
1 parent 8a0eee3 commit a0d828f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/git/commit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def list_from_string(cls, repo, text):
154154
return commits
155155

156156
@classmethod
157-
def diff(cls, repo, a, b = None, paths = []):
157+
def diff(cls, repo, a, b = None, paths = None):
158158
"""
159159
Show diffs between two trees:
160160
@@ -175,6 +175,8 @@ def diff(cls, repo, a, b = None, paths = []):
175175
Returns
176176
GitPython.Diff[]
177177
"""
178+
paths = paths or []
179+
178180
if isinstance(b, list):
179181
paths = b
180182
b = None

0 commit comments

Comments
 (0)