Skip to content

Commit

Permalink
Patch: Add --allow-empty argument to git apply
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 6, 2024
1 parent d4b3101 commit 1f53339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_app_geo_project/module/standard/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1f53339

Please sign in to comment.