Skip to content

Commit

Permalink
Merge pull request #466 from camptocamp/fix
Browse files Browse the repository at this point in the history
Patch: Add --allow-empty argument to git apply
  • Loading branch information
sbrunner authored Aug 6, 2024
2 parents b255421 + 1f53339 commit 5ad4dff
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 5ad4dff

Please sign in to comment.