mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Update Branch.py
This commit is contained in:
@@ -33,11 +33,6 @@ class Branch(github.GithubObject.NonCompletableGithubObject):
|
||||
"""
|
||||
This class represents Branchs. The reference can be found here http://developer.github.com/v3/repos/#list-branches
|
||||
"""
|
||||
def __init__(self, requester, attributes, completed):
|
||||
'''
|
||||
Adapte for __init__ change, remove later
|
||||
'''
|
||||
github.GithubObject.NonCompletableGithubObject.__init__(self, requester, {}, attributes, completed)
|
||||
|
||||
@property
|
||||
def commit(self):
|
||||
|
||||
@@ -769,7 +769,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
|
||||
None,
|
||||
None
|
||||
)
|
||||
return github.Branch.Branch(self._requester, data, completed=True)
|
||||
return github.Branch.Branch(self._requester, headers, data, completed=True)
|
||||
|
||||
def get_branches(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user