sync_from_downstream changed
@@ -301,9 +301,12 @@ class PackitAPI:
self.dg.update_branch(dist_git_branch)
self.dg.checkout_branch(dist_git_branch)
- local_pr_branch = f"{dist_git_branch}-downstream-sync"
logger.info(f'using "{dist_git_branch}" dist-git branch')
+ if no_pr:
+ self.up.checkout_branch(upstream_branch)
+ else:
+ local_pr_branch = f"{dist_git_branch}-downstream-sync"
self.up.create_branch(local_pr_branch)
self.up.checkout_branch(local_pr_branch)
