define a default folder

This commit is contained in:
tdurieux
2018-05-09 23:43:49 +02:00
parent 95ac3953da
commit 2771a0206e

View File

@@ -315,6 +315,8 @@ class Anonymous_Github:
if f.name.lower() == "readme" or f.name.lower() == "index.html":
current_file = f
break
if type(current_file) is not github.ContentFile.ContentFile:
current_file = current_file[0]
elif current_file.type == 'file':
if os.path.dirname(path) == '':
files = g_repo.get_git_tree(g_commit.sha)