diff --git a/github/GitTag.py b/github/GitTag.py index 186f8928..58a34598 100644 --- a/github/GitTag.py +++ b/github/GitTag.py @@ -33,9 +33,6 @@ class GitTag(github.GithubObject.CompletableGithubObject): """ This class represents GitTags 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 message(self): diff --git a/github/Repository.py b/github/Repository.py index 290cd615..c9757d5e 100644 --- a/github/Repository.py +++ b/github/Repository.py @@ -472,7 +472,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, post_parameters ) - return github.GitTag.GitTag(self._requester, data, completed=True) + return github.GitTag.GitTag(self._requester, headers, data, completed=True) def create_git_tree(self, tree, base_tree=github.GithubObject.NotSet): """ @@ -1059,7 +1059,7 @@ class Repository(github.GithubObject.CompletableGithubObject): None, None ) - return github.GitTag.GitTag(self._requester, data, completed=True) + return github.GitTag.GitTag(self._requester, headers, data, completed=True) def get_git_tree(self, sha, recursive=github.GithubObject.NotSet): """