Skip to content

Commit

Permalink
Fix delete_remote_branches (#27)
Browse files Browse the repository at this point in the history
delete_remote_branches formatted remote
branch refs with an extra single quote
around each branch. These would never
match the branch strings stored in
stack entries, so remote branches would
never get deleted. This commit removes
the extra single quotes.
  • Loading branch information
cleithner-comcast authored Oct 5, 2024
1 parent 804f0bf commit 3161fcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stack_pr/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ def delete_remote_branches(st: List[StackEntry], remote: str):
"git",
"for-each-ref",
f"refs/remotes/{remote}/{username}/stack",
"--format='%(refname)'",
"--format=%(refname)",
]
).split()
refs = [x.replace(f"refs/remotes/{remote}/", "") for x in refs]
Expand Down

0 comments on commit 3161fcb

Please sign in to comment.