We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 152a327 commit a3f8311Copy full SHA for a3f8311
commit0/harness/setup.py
@@ -28,8 +28,12 @@ def main(
28
if repo_split != "all" and repo_name not in SPLIT[repo_split]:
29
continue
30
clone_url = f"https://github.com/{example['repo']}.git"
31
- clone_dir = os.path.abspath(os.path.join(base_dir, repo_name))
32
- branch = dataset_name.split("/")[-1]
+ if "swe" in dataset_name.lower():
+ clone_dir = os.path.abspath(os.path.join(base_dir, example["instance_id"]))
33
+ branch = example["base_commit"]
34
+ else:
35
+ clone_dir = os.path.abspath(os.path.join(base_dir, repo_name))
36
+ branch = dataset_name.split("/")[-1]
37
repo = clone_repo(clone_url, clone_dir, branch, logger)
38
if BASE_BRANCH in repo.branches:
39
repo.git.branch("-d", BASE_BRANCH)
0 commit comments