File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 10
10
11
11
12
12
def create_branch (version ):
13
- """Create a fresh branch from upstream/master """
13
+ """Create a fresh branch from upstream/main """
14
14
repo = Repo .init ("." )
15
15
if repo .is_dirty (untracked_files = True ):
16
16
raise RuntimeError ("Repository is dirty, please commit/stash your changes." )
17
17
18
18
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 " )
20
20
upstream = get_upstream (repo )
21
21
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 )
23
23
release_branch .checkout ()
24
24
return repo
25
25
You can’t perform that action at this time.
0 commit comments