Skip to content

Commit

Permalink
Fix a bug with replacing $USERNAME in the branch name. (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZolotukhinM authored Oct 17, 2024
1 parent 86b7fe7 commit 50b7346
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/stack_pr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,7 @@ def get_branch_name_base(branch_name_template: str):
username = get_gh_username()
current_branch_name = get_current_branch_name()
branch_name_base = branch_name_template.replace("$USERNAME", username)
branch_name_base = branch_name_template.replace(
"$BRANCH", current_branch_name
)
branch_name_base = branch_name_base.replace("$BRANCH", current_branch_name)
return branch_name_base


Expand Down

0 comments on commit 50b7346

Please sign in to comment.