Skip to content

Commit 7cbd8ab

Browse files
authored
Don't attempt to delete remote branch after a PR has landed. (#42)
GitHub deletes the remote branch automatically when the PR is merged, so we don't to explicitly do that. Trying to delete it currently results in an error like this: ``` error: unable to delete 'ZolotukhinM/stack/1': remote ref does not exist error: failed to push some refs to '...' ``` The code for deleting the branch has been sitting there for a long time, but until a fix in #27 it used incorrect branch names.
1 parent a1256e7 commit 7cbd8ab

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/stack_pr/cli.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,9 +1117,6 @@ def command_land(args: CommonArgs):
11171117
)
11181118

11191119
delete_local_branches(st, args.verbose)
1120-
delete_remote_branches(
1121-
st[:1], args.remote, args.verbose, args.branch_name_template
1122-
)
11231120

11241121
# If local branch {target} exists, rebase it on the remote/target
11251122
if branch_exists(args.target):

0 commit comments

Comments
 (0)