From ade00bdf53d2d361daf3ff6429cb254b732c8ad1 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Tue, 18 Mar 2025 11:49:11 +0100 Subject: [PATCH] instead of checking out the current branch (main/master), i reset it hard (preshoting the jacoco injection) --- pull_requests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pull_requests.py b/pull_requests.py index bfea0e1..62b5885 100644 --- a/pull_requests.py +++ b/pull_requests.py @@ -72,7 +72,7 @@ def ensure_full_history(repo_path: str) -> None: def reset_repo_to_latest_commit(repo_path: str) -> None: current_branch = run_git_cmd(["rev-parse", "--abbrev-ref", "HEAD"], repo_path).stdout.strip() - run_git_cmd(["checkout", current_branch], repo_path) + run_git_cmd(["reset", "--hard", current_branch], repo_path) def process_pull(repo: Repository, pr: PullRequest, dataset: Dataset, repos_dir: str): commits = list(pr.get_commits())