8000 Fix scripts/release.py to use main instead of master · pytest-dev/pluggy@fc6395c · GitHub
[go: up one dir, main page]

Skip to content

Commit fc6395c

Browse files
committed
Fix scripts/release.py to use main instead of master
1 parent e04816f commit fc6395c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/release.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@
1010

1111

1212
def create_branch(version):
13-
"""Create a fresh branch from upstream/master"""
13+
"""Create a fresh branch from upstream/main"""
1414
repo = Repo.init(".")
1515
if repo.is_dirty(untracked_files=True):
1616
raise RuntimeError("Repository is dirty, please commit/stash your changes.")
1717

1818
branch_name = f"release-{version}"
19-
print(f"{Fore.CYAN}Create {branch_name} branch from upstream master")
19+
print(f"{Fore.CYAN}Create {branch_name} branch from upstream main")
2020
upstream = get_upstream(repo)
2121
upstream.fetch()
22-
release_branch = repo.create_head(branch_name, upstream.refs.master, force=True)
22+
release_branch = repo.create_head(branch_name, upstream.refs.main, force=True)
2323
release_branch.checkout()
2424
return repo
2525

0 commit comments

Comments
 (0)
0