From 48eab302f98e899e44e02b60a360bf783828f3c8 Mon Sep 17 00:00:00 2001 From: Wenting Date: Sat, 28 Sep 2024 18:49:28 +0000 Subject: [PATCH] pre-commit --- commit0/harness/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commit0/harness/utils.py b/commit0/harness/utils.py index 4df71a1..8a44685 100644 --- a/commit0/harness/utils.py +++ b/commit0/harness/utils.py @@ -183,7 +183,9 @@ def generate_patch_between_commits( """ try: - patch = repo.git.diff(old_commit, new_commit, "--", ".", ":(exclude)spec.pdf.bz2") + patch = repo.git.diff( + old_commit, new_commit, "--", ".", ":(exclude)spec.pdf.bz2" + ) return patch + "\n\n" except git.GitCommandError as e: raise Exception(f"Error generating patch: {e}")