1
0
Fork 0

feat(readme-generator/regen_readme_in_batch): make debug output more readable

This commit is contained in:
Laurent Peuch 2024-03-29 06:53:54 +01:00
parent 1d077fc3a2
commit 44aa5fc878

View file

@ -37,7 +37,9 @@ async def git(cmd, in_folder=None):
async def regen_readme(repository, branch): async def regen_readme(repository, branch):
print()
print(f"{repository} -> branch '{branch}'") print(f"{repository} -> branch '{branch}'")
print("=" * len(f"{repository} -> branch '{branch}'"))
with tempfile.TemporaryDirectory() as folder: with tempfile.TemporaryDirectory() as folder:
await git(["clone", f"https://{login}:{token}@github.com/{repository}", "--single-branch", "--branch", branch, folder]) await git(["clone", f"https://{login}:{token}@github.com/{repository}", "--single-branch", "--branch", branch, folder])