Skip to content

Commit 0e110c2

Browse files
committed
git fetch branch for a fresh clone
1 parent a302c0d commit 0e110c2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

needs_backport.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,10 @@ def main() -> None:
163163
total_candidates = defaultdict(list)
164164
for branch in args.branches.split(","):
165165
print(f"\nChecking branch {branch}")
166+
output = subprocess.check_output(
167+
["git", "fetch", "origin", f"{branch}:{branch}"], cwd=args.repo_path
168+
).decode("utf-8")
169+
print(output)
166170
candidates = check_prs(
167171
api, args.repo_path, branch, args.start, args.number, args.sort
168172
)

0 commit comments

Comments
 (0)