summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2021-02-05 21:04:39 +0800
committerGitHub <noreply@github.com>2021-02-05 21:04:39 +0800
commit9de6450084eee405da03b7a948015738b15f59e7 (patch)
tree2baaca8c051eedd2f8d8164c9b053895fb3ba5f0 /git/objects/commit.py
parent3c19a6e1004bb8c116bfc7823477118490a2eef6 (diff)
parentaf86f05d11c3613a418f7d3babfdc618e1cac805 (diff)
downloadgitpython-9de6450084eee405da03b7a948015738b15f59e7.tar.gz
Merge pull request #1119 from yvolchkov/master
Fix inheritance issue at commit.iter_items
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 8a84dd69..302798cb 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -269,7 +269,7 @@ class Commit(base.Object, Iterable, Diffable, Traversable, Serializable):
# END handle extra info
assert len(hexsha) == 40, "Invalid line: %s" % hexsha
- yield Commit(repo, hex_to_bin(hexsha))
+ yield cls(repo, hex_to_bin(hexsha))
# END for each line in stream
# TODO: Review this - it seems process handling got a bit out of control
# due to many developers trying to fix the open file handles issue