Update GitBlob.py

This commit is contained in:
AKFish
2013-08-21 15:48:08 +08:00
parent dc8173a532
commit b43de50dc4
2 changed files with 2 additions and 5 deletions
+2 -2
View File
@@ -388,7 +388,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
post_parameters
)
return github.GitBlob.GitBlob(self._requester, data, completed=True)
return github.GitBlob.GitBlob(self._requester, headers, data, completed=True)
def create_git_commit(self, message, tree, parents, author=github.GithubObject.NotSet, committer=github.GithubObject.NotSet):
"""
@@ -999,7 +999,7 @@ class Repository(github.GithubObject.CompletableGithubObject):
None,
None
)
return github.GitBlob.GitBlob(self._requester, data, completed=True)
return github.GitBlob.GitBlob(self._requester, headers, data, completed=True)
def get_git_commit(self, sha):
"""