diff --git a/github/GitRef.py b/github/GitRef.py index fd81e371..9ff4f30f 100644 --- a/github/GitRef.py +++ b/github/GitRef.py @@ -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): diff --git a/github/Repository.py b/github/Repository.py index d03ca49a..290cd615 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -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): """