8000 Fix updates to git module · staticdev/github4.py@05ced99 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on May 22, 2021. It is now read-only.

Commit 05ced99

Browse files
committed
Fix updates to git module
1 parent 2f066e6 commit 05ced99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

github3/git.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class Commit(BaseCommit):
7171
"""
7272

7373
def _update_attributes(self, commit):
74+
super(Commit, self)._update_attributes(commit)
7475
#: dict containing at least the name, email and date the commit was
7576
#: created
7677
self.author = commit.get('author', {}) or {}
@@ -158,6 +159,7 @@ class GitObject(GitData):
158159
"""The :class:`GitObject <GitObject>` object."""
159160

160161
def _update_attributes(self, obj):
162+
super(GitObject, self)._update_attributes(obj)
161163
#: The type of object.
162164
self.type = obj.get('type')
163165

@@ -174,6 +176,7 @@ class Tag(GitData):
174176
"""
175177

176178
def _update_attributes(self, tag):
179+
super(Tag, self)._update_attributes(tag)
177180
#: String of the tag
178181
self.tag = tag.get('tag')
179182
#: Commit message for the tag
@@ -196,6 +199,7 @@ class Tree(GitData):
196199
"""
197200

198201
def _update_attributes(self, tree):
202+
super(Tree, self)._update_attributes(tree)
199203
#: list of :class:`Hash <Hash>` objects
200204
self.tree = [Hash(t) for t in tree.get('tree', [])]
201205

@@ -220,7 +224,7 @@ class Hash(GitHubObject):
220224
221225
"""
222226

223-
def _update_attribute(self, info):
227+
def _update_attributes(self, info):
224228
#: Path to file
225229
self.path = info.get('path')
226230
#: File mode

0 commit comments

Comments
 (0)
0