Update GitTree

This commit is contained in:
AKFish
2013-08-21 15:55:42 +08:00
parent c89bebc729
commit 038e35cb3d
3 changed files with 15 additions and 6 deletions
+2 -2
View File
@@ -494,7 +494,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
post_parameters
)
return github.GitTree.GitTree(self._requester, data, completed=True)
return github.GitTree.GitTree(self._requester, headers, data, completed=True)
def create_hook(self, name, config, events=github.GithubObject.NotSet, active=github.GithubObject.NotSet):
"""
@@ -1079,7 +1079,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
url_parameters,
None
)
return github.GitTree.GitTree(self._requester, data, completed=True)
return github.GitTree.GitTree(self._requester, headers, data, completed=True)
def get_hook(self, id):
"""