Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wenting-zhao committed Sep 28, 2024
1 parent 10aa9a5 commit 48eab30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commit0/harness/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down

0 comments on commit 48eab30

Please sign in to comment.