Skip to content

Commit 8bf7c3d

Browse files
committed
disallow test file changes
1 parent d9a9954 commit 8bf7c3d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

commit0/harness/run_pytest_ids.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def main(
108108
if not found_remote_branch:
109109
raise Exception(f"Branch {branch} does not exist locally or remotely.")
110110
patch = generate_patch_between_commits(
111-
local_repo, example["base_commit"], commit_id
111+
local_repo, example["base_commit"], commit_id, example["src_dir"]
112112
)
113113
patch_file = Path(log_dir / "patch.diff")
114114
patch_file.write_text(patch)

commit0/harness/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def create_repo_on_github(
163163

164164

165165
def generate_patch_between_commits(
166-
repo: git.Repo, old_commit: str, new_commit: str
166+
repo: git.Repo, old_commit: str, new_commit: str, src_dir: str
167167
) -> str:
168168
"""Generate a patch string by comparing two specified commits.
169169

0 commit comments

Comments
 (0)