From 1f533392f6c3c71efba0f92b4d970c3c48ff355c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 5 Aug 2024 12:47:29 +0200 Subject: [PATCH] Patch: Add --allow-empty argument to git apply --- github_app_geo_project/module/standard/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github_app_geo_project/module/standard/patch.py b/github_app_geo_project/module/standard/patch.py index c13ac6c3810..42b87d7511a 100644 --- a/github_app_geo_project/module/standard/patch.py +++ b/github_app_geo_project/module/standard/patch.py @@ -139,7 +139,7 @@ async def process( result_message.extend(["```diff", patch_input, "```"]) else: proc = subprocess.run( # nosec # pylint: disable=subprocess-run-check - ["git", "apply"], + ["git", "apply", "--allow-empty"], input=patch_input, encoding="utf-8", capture_output=True,