From 945d6f3f8bd30dec1a11f610dc94bdec0917520f Mon Sep 17 00:00:00 2001 From: Laurent Peuch Date: Fri, 29 Mar 2024 06:58:59 +0100 Subject: [PATCH] refactor(readme-generator/regen_readme_in_batch): upsi, broke condition --- readme_generator/regen_readme_in_batch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme_generator/regen_readme_in_batch.py b/readme_generator/regen_readme_in_batch.py index a63a1e5..372ae9c 100644 --- a/readme_generator/regen_readme_in_batch.py +++ b/readme_generator/regen_readme_in_batch.py @@ -55,7 +55,7 @@ async def regen_readme(repository, branch): diff_not_empty = await asyncio.create_subprocess_shell(" ".join(["git", "diff", "HEAD", "--compact-summary"]), cwd=folder, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.STDOUT) diff_not_empty = await diff_not_empty.stdout.read() diff_not_empty = diff_not_empty.decode().strip() - if diff_not_empty: + if not diff_not_empty: print("nothing to do") return