Skip to content

Commit c22564d

Browse files
committed
targets: only fetch ref for target branch
1 parent 0a0f160 commit c22564d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script/pre_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def fetch_thread():
8181
else:
8282
target_repo = porcelain.open_repo(target_dir)
8383
target_ref_before = porcelain.describe(target_repo)
84-
porcelain.fetch(target_repo)
85-
porcelain.checkout_branch(target_repo, "targets")
84+
update = porcelain.fetch(target_repo, target_remote, b"refs/heads/targets")
85+
porcelain.checkout_branch(target_repo, update[b"refs/heads/targets"])
8686
target_ref_after = porcelain.describe(target_repo)
8787

8888
if target_ref_before != target_ref_after:

0 commit comments

Comments
 (0)