mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
Repository.get_git_tree with 'recursive'
This commit is contained in:
@@ -2,10 +2,10 @@ from GithubObject import *
|
||||
|
||||
GitTree = GithubObject(
|
||||
"GitTree",
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl() + "/git/trees/" + obj.sha ),
|
||||
BaseUrl( lambda obj: obj._repo._baseUrl() + "/git/trees/" + obj.sha + "?recursive=1" if obj.recursive else "" ),
|
||||
InternalSimpleAttributes(
|
||||
"sha", "url",
|
||||
"tree",
|
||||
"_repo",
|
||||
"_repo", "recursive",
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user