summaryrefslogtreecommitdiff
path: root/git/objects/commit.py
diff options
context:
space:
mode:
authorDominic <yobmod@gmail.com>2021-07-31 13:54:17 +0100
committerGitHub <noreply@github.com>2021-07-31 13:54:17 +0100
commitef32490ae3bda224000230938a6f95d5d8692c9f (patch)
treef413a9c1c975c8a1aaa1a8d4f5408ba6a77c3575 /git/objects/commit.py
parent37fa31decc9ab74621590cb25791ccd8d3bf0583 (diff)
parenta5a05d153ecdbd9b9bdb285a77f5b14d9c0344b0 (diff)
downloadgitpython-ef32490ae3bda224000230938a6f95d5d8692c9f.tar.gz
Merge pull request #1305 from gitpython-developers/typing
Improve types of objects/
Diffstat (limited to 'git/objects/commit.py')
-rw-r--r--git/objects/commit.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/git/objects/commit.py b/git/objects/commit.py
index 884f6522..9d709656 100644
--- a/git/objects/commit.py
+++ b/git/objects/commit.py
@@ -128,6 +128,7 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable):
as what time.altzone returns. The sign is inverted compared to git's
UTC timezone."""
super(Commit, self).__init__(repo, binsha)
+ self.binsha = binsha
if tree is not None:
assert isinstance(tree, Tree), "Tree needs to be a Tree instance, was %s" % type(tree)
if tree is not None: