Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5d32046

Browse files
committed
Fix release script
Signed-off-by: Bernát Gábor <[email protected]>
1 parent ca04bf7 commit 5d32046

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tasks/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ def main(version_str: str) -> None:
2727

2828

2929
def create_release_branch(repo: Repo, version: Version) -> Tuple[Remote, Head]:
30-
print("create release branch from upstream master")
30+
print("create release branch from upstream legacy")
3131
upstream = get_upstream(repo)
3232
upstream.fetch()
3333
branch_name = f"release-{version}"
34-
release_branch = repo.create_head(branch_name, upstream.refs.master, force=True)
34+
release_branch = repo.create_head(branch_name, upstream.refs.legacy, force=True)
3535
upstream.push(refspec=f"{branch_name}:{branch_name}", force=True)
3636
release_branch.set_tracking_branch(repo.refs[f"{upstream.name}/{branch_name}"])
3737
release_branch.checkout()

0 commit comments

Comments
 (0)