From 558ab66ee4a202de7c1579330b7137ceaf99d10b Mon Sep 17 00:00:00 2001 From: bkleiner Date: Thu, 12 Dec 2024 23:13:37 +0100 Subject: [PATCH] targets: only fetch ref for target branch --- script/pre_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/pre_script.py b/script/pre_script.py index 1c51996f6..766e9426a 100644 --- a/script/pre_script.py +++ b/script/pre_script.py @@ -81,8 +81,8 @@ def fetch_thread(): else: target_repo = porcelain.open_repo(target_dir) target_ref_before = porcelain.describe(target_repo) - porcelain.fetch(target_repo) - porcelain.checkout_branch(target_repo, "targets") + update = porcelain.fetch(target_repo, target_remote, b"refs/heads/targets") + porcelain.checkout_branch(target_repo, update[b"refs/heads/targets"]) target_ref_after = porcelain.describe(target_repo) if target_ref_before != target_ref_after: