# Fix remote worktree picker hides "Create from origin/main" option \(\#59134\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 503292376ed04fca814c8b4533b38f90863675fb

Requested commit: 503292376ed04fca814c8b4533b38f90863675fb

Commit: 503292376ed04fca814c8b4533b38f90863675fb

Tree: ead9f06bdfa990af61cbaff420aed6519b52cd4a

Author: Tyler Benfield

Committer: GitHub

## Message

```
Fix remote worktree picker hides "Create from origin/main" option (#59134)

This passes the `include_remote_name` flag through the remote
`GetDefaultBranch` RPC instead of dropping it at the client/host
boundary. That lets remote repositories resolve default branches as
`origin/main` when needed, so worktree creation uses a valid remote
branch name instead of falling back to `main`.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content adheres to Zed's UI standards
([UX/UI](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
and
[icon](https://github.com/zed-industries/zed/blob/main/crates/icons/README.md)
guidelines)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #59121

Release Notes:

- Fixed remote worktree creation from the default branch when the
default branch requires its remote name.

---------

Co-authored-by: Smit Barmase <heysmitbarmase@gmail.com>
```

## Parents

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

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