# git: Forbid main git worktree deletion from worktree picker \(\#52841\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 89732f12799923cdc50ed27eb58bcefba75a4f6b

Requested commit: 89732f12799923cdc50ed27eb58bcefba75a4f6b

Commit: 89732f12799923cdc50ed27eb58bcefba75a4f6b

Tree: f33db8cc7357d0f2f3195a131982355c04dd8b55

Author: Anthony Eid

Committer: GitHub

## Message

```
git: Forbid main git worktree deletion from worktree picker (#52841)

This operation would always fail in the UI because the git binary
already disallowed it. This PR just makes the UI more inline with what's
actually valid

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 is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [ ] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- git: Forbid main git worktree deletion from git worktree picker

---------

Co-authored-by: Eric Holk <eric@zed.dev>
```

## Parents

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

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