Skip to content

Commit bc51469

Browse files
committed
fixed a bug in commit0
1 parent 7576839 commit bc51469

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

commit0/harness/run_pytest_ids.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ def main(
7373
else:
7474
repo_name = example["repo"].split("/")[-1]
7575
dataset_type = "commit0"
76-
if repo_name in os.path.basename(repo_or_repo_dir) or repo_or_repo_dir.endswith(
77-
repo_name
78-
):
76+
if repo_name == os.path.basename(repo_or_repo_dir):
7977
spec = make_spec(example, dataset_type)
8078
break
8179
assert spec is not None, "No spec available"

0 commit comments

Comments
 (0)