Skip to content

Commit

Permalink
Update delete_remote_branches to also use branch name template.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZolotukhinM committed Oct 8, 2024
1 parent 79d6dde commit a6c5504
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/stack_pr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -1039,12 +1039,12 @@ def delete_remote_branches(st: List[StackEntry], remote: str, verbose: bool):
log(h("Deleting remote branches"), level=1)
run_shell_command(["git", "fetch", "--prune", remote], quiet=not verbose)

username = get_gh_username()
branch_name_base = get_branch_name_base(branch_name_template)
refs = get_command_output(
[
"git",
"for-each-ref",
f"refs/remotes/{remote}/{username}/stack",
f"refs/remotes/{remote}/{branch_name_base}",
"--format=%(refname)",
]
).split()
Expand Down

0 comments on commit a6c5504

Please sign in to comment.