Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 891bd03

Browse files
Modify from_branch default value for code consistency
1 parent 7a8ca56 commit 891bd03

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/python3_pip_skeleton/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def replace_text(text: str) -> str:
8484
# will do the wrong thing
8585
shutil.rmtree(git_tmp / "src", ignore_errors=True)
8686
# Merge in the skeleton commits
87-
git_tmp("pull", "--rebase=false", SKELETON, from_branch or "main")
87+
git_tmp("pull", "--rebase=false", SKELETON, from_branch)
8888
# Move things around
8989
if package != "python3_pip_skeleton":
9090
git_tmp("mv", "src/python3_pip_skeleton", f"src/{package}")
@@ -158,7 +158,7 @@ def new(args):
158158
org=args.org,
159159
full_name=args.full_name or git("config", "--get", "user.name").strip(),
160160
email=args.email or git("config", "--get", "user.email").strip(),
161-
from_branch=args.from_branch,
161+
from_branch=args.from_branch or "main",
162162
package=package,
163163
)
164164

@@ -191,7 +191,7 @@ def existing(args):
191191
org=args.org,
192192
full_name=conf["metadata"]["author"],
193193
email=conf["metadata"]["author_email"],
194-
from_branch=args.from_branch,
194+
from_branch=args.from_branch or "main",
195195
package=package,
196196
)
197197

0 commit comments

Comments
 (0)