Skip to content

Commit 0c484f6

Browse files
committed
fix broken logic to switch to the merge commit of an open PR
1 parent e3955c7 commit 0c484f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/regression/run_regression.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def setup_repo_dir(args: argparse.Namespace, workflow_repo_dir: Path):
115115
if args.pr:
116116
merge_commit_id = f"refs/pull/{args.pr}/merge"
117117
run_command(f"git -C {workflow_repo_dir} fetch origin {merge_commit_id}")
118-
run_command(f"git -C {workflow_repo_dir} checkout {merge_commit_id}")
118+
run_command(f"git -C {workflow_repo_dir} checkout FETCH_HEAD")
119119
elif args.branch:
120120
run_command(f"git -C {workflow_repo_dir} checkout {args.branch}")
121121

0 commit comments

Comments
 (0)