aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/requests/git_data/trees.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-04-28 00:19:49 +0200
committerDavid Medina <davidmedina9@gmail.com>2012-04-28 22:35:30 +0200
commit1b1ccd6b86740157b2529614945a218d73049f4a (patch)
tree970b2dc73302268a8c0964e34d9b38aa1643d0d6 /pygithub3/requests/git_data/trees.py
parentMerged pull request #3 from natw/git_data (diff)
downloadpython-github3-1b1ccd6b86740157b2529614945a218d73049f4a.tar.xz
python-github3-1b1ccd6b86740157b2529614945a218d73049f4a.zip
Litle fixs
Diffstat (limited to 'pygithub3/requests/git_data/trees.py')
-rw-r--r--pygithub3/requests/git_data/trees.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/pygithub3/requests/git_data/trees.py b/pygithub3/requests/git_data/trees.py
index bd1593f..11d6409 100644
--- a/pygithub3/requests/git_data/trees.py
+++ b/pygithub3/requests/git_data/trees.py
@@ -6,15 +6,11 @@ class Get(Request):
uri = 'repos/{user}/{repo}/git/trees/{sha}'
resource = Tree
- def clean_uri(self):
- if self.recursive:
- return self.uri + '?recursive=1'
-
class Create(Request):
uri = 'repos/{user}/{repo}/git/trees'
resource = Tree
body_schema = {
- 'schema': ('tree',),
+ 'schema': ('tree', 'base_tree'),
'required': ('tree',),
}