Skip to content

Commit 3161fcb

Browse files
Fix delete_remote_branches (#27)
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.
1 parent 804f0bf commit 3161fcb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stack_pr/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ def delete_remote_branches(st: List[StackEntry], remote: str):
967967
"git",
968968
"for-each-ref",
969969
f"refs/remotes/{remote}/{username}/stack",
970-
"--format='%(refname)'",
970+
"--format=%(refname)",
971971
]
972972
).split()
973973
refs = [x.replace(f"refs/remotes/{remote}/", "") for x in refs]

0 commit comments

Comments
 (0)