From 66b230cbefabdaf2bf927c2c6d54528816197db3 Mon Sep 17 00:00:00 2001 From: Wenting Date: Wed, 30 Oct 2024 21:07:02 +0000 Subject: [PATCH] fixes --- commit0/harness/spec.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/commit0/harness/spec.py b/commit0/harness/spec.py index 2036ded..2505253 100644 --- a/commit0/harness/spec.py +++ b/commit0/harness/spec.py @@ -182,7 +182,6 @@ def make_repo_script_list(self) -> list[str]: """ specs = self.instance["setup"] repo = self.instance["repo"] - env_setup_commit = self.instance["reference_commit"] version = int(str(specs["python"]).split(".")[-1]) if version < 7: specs["python"] = 3.7 @@ -191,7 +190,6 @@ def make_repo_script_list(self) -> list[str]: f"git clone -o origin https://github.com/{repo} {self.repo_directory}", f"chmod -R 777 {self.repo_directory}", # So nonroot user can run tests f"cd {self.repo_directory}", - f"git reset --hard {env_setup_commit}", # Remove the remote so the agent won't see newer commits. "git remote remove origin", f"uv venv --python {specs['python']}",