# git_ui: Fix creating worktree not possible if default branch unavailable \(\#57918\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d74e47ea519a50fb7707c246c440aa87feec4bee

Requested commit: d74e47ea519a50fb7707c246c440aa87feec4bee

Commit: d74e47ea519a50fb7707c246c440aa87feec4bee

Tree: 319ced8276985f957250564dda2126f4d34e3040

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
git_ui: Fix creating worktree not possible if default branch unavailable (#57918)

Follow up to #57704

This makes sure that we offer a worktree creation option in case
resolving the default branch fails

Release Notes:

- git: Fixed an issue where worktree creation would not be possible if
resolving default branch fails
```

## Parents

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

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