Add autopatch for new permission system

This commit is contained in:
Alexandre Aubin
2021-02-21 21:55:01 +01:00
parent 175fd4156e
commit 77b148f67d
4 changed files with 79 additions and 2 deletions

View File

@ -59,7 +59,7 @@ def build_cache():
for app in progressbar(apps(), "Git cloning: ", 40):
folder = os.path.join(".apps_cache", app["id"])
reponame = app["url"].rsplit("/", 1)
reponame = app["url"].rsplit("/", 1)[-1]
git(f"clone --quiet --depth 1 --single-branch {app['url']} {folder}")
git(f"remote add fork https://{login}:{token}@github.com/{login}/{reponame}", in_folder=folder)
@ -85,7 +85,7 @@ def diff():
print("Changes in : " + app["id"])
print("=================================")
print("\n")
os.system(f"cd {folder} && git diff")
os.system(f"cd {folder} && git --no-pager diff")
def push(patch):