mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-12 08:16:33 +02:00
define a default folder
This commit is contained in:
@@ -315,6 +315,8 @@ class Anonymous_Github:
|
|||||||
if f.name.lower() == "readme" or f.name.lower() == "index.html":
|
if f.name.lower() == "readme" or f.name.lower() == "index.html":
|
||||||
current_file = f
|
current_file = f
|
||||||
break
|
break
|
||||||
|
if type(current_file) is not github.ContentFile.ContentFile:
|
||||||
|
current_file = current_file[0]
|
||||||
elif current_file.type == 'file':
|
elif current_file.type == 'file':
|
||||||
if os.path.dirname(path) == '':
|
if os.path.dirname(path) == '':
|
||||||
files = g_repo.get_git_tree(g_commit.sha)
|
files = g_repo.get_git_tree(g_commit.sha)
|
||||||
|
|||||||
Reference in New Issue
Block a user