# git: Fix branch picker creating new branches with refs/head/ prefixed on the branch name \(\#44206\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 126d708fa1dc493e2d0fafb477bd814d40df0238

Requested commit: 126d708fa1dc493e2d0fafb477bd814d40df0238

Commit: 126d708fa1dc493e2d0fafb477bd814d40df0238

Tree: 9a9ed29add164f09e2e3445c343ff1c2ca08a344

Author: Anthony Eid

Committer: GitHub

## Message

```
git: Fix branch picker creating new branches with refs/head/ prefixed on the branch name (#44206)

The bug was introduced in this recent PR:
https://github.com/zed-industries/zed/pull/42819. Since it's still in
nightly, there is no need for release notes.

I also polished the feature a bit by:
- Ensuring branch names are always a single line so the branch picker's
uniform list uses the correct element height.
- Adding tooltip text for the filter remotes button.
- Fixing the create branch from default icon showing up for non-new
branch entries.

Release Notes:

- N/A
```

## Parents

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

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