Update GitRef.py

This commit is contained in:
AKFish
2013-08-21 15:51:12 +08:00
parent b43de50dc4
commit 1dbc2dd38f
2 changed files with 2 additions and 5 deletions
-3
View File
@@ -32,9 +32,6 @@ class GitRef(github.GithubObject.CompletableGithubObject):
"""
This class represents GitRefs as returned for example by http://developer.github.com/v3/todo
"""
def __init__(self, requester, attributes, completed):
# Adapte for __init__ change, remove later
github.GithubObject.CompletableGithubObject.__init__(self, requester, {}, attributes, completed)
@property
def object(self):
+2 -2
View File
@@ -441,7 +441,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
post_parameters
)
return github.GitRef.GitRef(self._requester, data, completed=True)
return github.GitRef.GitRef(self._requester, headers, data, completed=True)
def create_git_tag(self, tag, message, object, type, tagger=github.GithubObject.NotSet):
"""
@@ -1032,7 +1032,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
None
)
return github.GitRef.GitRef(self._requester, data, completed=True)
return github.GitRef.GitRef(self._requester, headers, data, completed=True)
def get_git_refs(self):
"""