Skip to content

Commit

Permalink
targets: only fetch ref for target branch
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Dec 14, 2024
1 parent b1d22b3 commit 558ab66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/pre_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 558ab66

Please sign in to comment.