# git_ui: Fix branch picker deleting remote instead of remote branch \(\#48338\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ed2c08fc4ea972f962f0dbc36970b738561e81f0)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ed2c08fc4ea972f962f0dbc36970b738561e81f0

Requested commit: ed2c08fc4ea972f962f0dbc36970b738561e81f0

Commit: ed2c08fc4ea972f962f0dbc36970b738561e81f0

Tree: 40b83a32ecc7f606a6fdeaec75034c10f3eec213

Author: ᴀᴍᴛᴏᴀᴇʀ

Committer: GitHub

## Message

```
git_ui: Fix branch picker deleting remote instead of remote branch (#48338)

Closes #48256

It appears that the current git remotes support was implemented in
#42819, following the design described in
https://github.com/zed-industries/zed/pull/42486#issuecomment-3524092306.
That design does not include an interaction for deleting remotes, but
the delete remote branch action was mistakenly implemented as deleting
the remote itself.

After this PR, there should be no code paths that use `remove_remote`
anymore. I've kept it for now though, as it may be useful when we
introduce the corresponding interaction in the future.

Release Notes:

- Fixed a bug where deleting a remote branch from the branch picker
would incorrectly remove the entire remote configuration
```

## Parents

- [695e8a929bce65501366f3f1e30b3af63d3ac8fa](https://git.cafe/gitcafe/zed/commit/695e8a929bce65501366f3f1e30b3af63d3ac8fa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ed2c08fc4ea972f962f0dbc36970b738561e81f0?format=markdown)
