Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wenting-zhao committed Oct 30, 2024
1 parent 98680f1 commit 66b230c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions commit0/harness/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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']}",
Expand Down

0 comments on commit 66b230c

Please sign in to comment.